FreeBSD kernel netgraph code
|
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/ctype.h>
#include <sys/mbuf.h>
#include <sys/errno.h>
#include <sys/socket.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
#include <netgraph/ng_gif_demux.h>
Go to the source code of this file.
Data Structures | |
struct | iffam |
struct | ng_gif_demux_private |
Macros | |
#define | M_NETGRAPH_GIF_DEMUX M_NETGRAPH |
#define | NUM_FAMILIES nitems(gFamilies) |
Typedefs | |
typedef const struct iffam * | iffam_p |
typedef struct ng_gif_demux_private * | priv_p |
Functions | |
static iffam_p | get_iffam_from_af (sa_family_t family) |
static iffam_p | get_iffam_from_hook (priv_p priv, hook_p hook) |
static iffam_p | get_iffam_from_name (const char *name) |
static hook_p * | get_hook_from_iffam (priv_p priv, iffam_p iffam) |
NETGRAPH_INIT (gif_demux, &ng_gif_demux_typestruct) | |
static int | ng_gif_demux_constructor (node_p node) |
static int | ng_gif_demux_newhook (node_p node, hook_p hook, const char *name) |
static int | ng_gif_demux_rcvmsg (node_p node, item_p item, hook_p lasthook) |
static int | ng_gif_demux_rcvdata (hook_p hook, item_p item) |
static int | ng_gif_demux_shutdown (node_p node) |
static int | ng_gif_demux_disconnect (hook_p hook) |
Variables | |
static const struct iffam | gFamilies [] |
static ng_constructor_t | ng_gif_demux_constructor |
static ng_rcvmsg_t | ng_gif_demux_rcvmsg |
static ng_shutdown_t | ng_gif_demux_shutdown |
static ng_newhook_t | ng_gif_demux_newhook |
static ng_rcvdata_t | ng_gif_demux_rcvdata |
static ng_disconnect_t | ng_gif_demux_disconnect |
static const struct ng_cmdlist | ng_gif_demux_cmdlist [] |
static struct ng_type | ng_gif_demux_typestruct |
#define M_NETGRAPH_GIF_DEMUX M_NETGRAPH |
Definition at line 97 of file ng_gif_demux.c.
#define NUM_FAMILIES nitems(gFamilies) |
Definition at line 116 of file ng_gif_demux.c.
Definition at line 105 of file ng_gif_demux.c.
typedef struct ng_gif_demux_private* priv_p |
Definition at line 124 of file ng_gif_demux.c.
Definition at line 203 of file ng_gif_demux.c.
References gFamilies.
Referenced by ng_gif_demux_disconnect(), ng_gif_demux_newhook(), and ng_gif_demux_rcvdata().
|
static |
Definition at line 171 of file ng_gif_demux.c.
References iffam::family, gFamilies, and NUM_FAMILIES.
Referenced by ng_gif_demux_rcvdata().
Definition at line 188 of file ng_gif_demux.c.
References gFamilies, and NUM_FAMILIES.
Referenced by ng_gif_demux_disconnect(), and ng_gif_demux_rcvdata().
|
static |
Definition at line 212 of file ng_gif_demux.c.
References gFamilies, iffam::hookname, name, and NUM_FAMILIES.
Referenced by ng_gif_demux_newhook().
NETGRAPH_INIT | ( | gif_demux | , |
& | ng_gif_demux_typestruct | ||
) |
|
static |
Definition at line 233 of file ng_gif_demux.c.
References M_NETGRAPH_GIF_DEMUX, and NG_NODE_SET_PRIVATE.
|
static |
Definition at line 383 of file ng_gif_demux.c.
References get_hook_from_iffam(), get_iffam_from_hook(), NG_HOOK_NODE, and NG_NODE_PRIVATE.
Definition at line 251 of file ng_gif_demux.c.
References get_hook_from_iffam(), get_iffam_from_name(), name, NG_GIF_DEMUX_HOOK_GIF, and NG_NODE_PRIVATE.
Definition at line 306 of file ng_gif_demux.c.
References iffam::family, get_hook_from_iffam(), get_iffam_from_af(), get_iffam_from_hook(), NG_FREE_ITEM, NG_FREE_M, NG_FWD_ITEM_HOOK, NG_HOOK_NODE, NG_NODE_PRIVATE, NGI_GET_M, and NGI_M.
Definition at line 275 of file ng_gif_demux.c.
References ng_mesg::ng_msghdr::cmd, ng_mesg::header, NG_FREE_MSG, NG_RESPOND_MSG, NGI_GET_MSG, NGM_GIF_DEMUX_COOKIE, and ng_mesg::ng_msghdr::typecookie.
|
static |
Definition at line 369 of file ng_gif_demux.c.
References M_NETGRAPH_GIF_DEMUX, NG_NODE_PRIVATE, NG_NODE_SET_PRIVATE, and NG_NODE_UNREF.
|
static |
Definition at line 108 of file ng_gif_demux.c.
Referenced by get_hook_from_iffam(), get_iffam_from_af(), get_iffam_from_hook(), and get_iffam_from_name().
|
static |
Definition at line 145 of file ng_gif_demux.c.
|
static |
Definition at line 127 of file ng_gif_demux.c.
|
static |
Definition at line 132 of file ng_gif_demux.c.
|
static |
Definition at line 130 of file ng_gif_demux.c.
|
static |
Definition at line 131 of file ng_gif_demux.c.
|
static |
Definition at line 128 of file ng_gif_demux.c.
|
static |
Definition at line 129 of file ng_gif_demux.c.
|
static |
Definition at line 150 of file ng_gif_demux.c.