#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
#include <netgraph/ng_hole.h>
Go to the source code of this file.
◆ hinfo_p
◆ NETGRAPH_INIT()
NETGRAPH_INIT |
( |
hole |
, |
|
|
& |
typestruct |
|
) |
| |
◆ ngh_cons()
static int ngh_cons |
( |
node_p |
node | ) |
|
|
static |
◆ ngh_disconnect()
static int ngh_disconnect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ngh_newhook()
static int ngh_newhook |
( |
node_p |
node, |
|
|
hook_p |
hook, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ ngh_rcvdata()
◆ ngh_rcvmsg()
Definition at line 146 of file ng_hole.c.
References ng_mesg::ng_msghdr::arglen, ng_mesg::ng_msghdr::cmd, ng_mesg::data, ng_mesg::header, ng_findhook(), NG_FREE_MSG, NG_HOOK_PRIVATE, NG_HOOKSIZ, NG_MKRESPONSE, NG_RESPOND_MSG, NGI_GET_MSG, NGM_HOLE_CLR_STATS, NGM_HOLE_COOKIE, NGM_HOLE_GET_STATS, NGM_HOLE_GETCLR_STATS, and ng_mesg::ng_msghdr::typecookie.
◆ ng_hole_cmdlist
Initial value:= {
{
"getstats",
},
{
"clrstats",
NULL
},
{
"getclrstats",
},
{ 0 }
}
static const struct ng_parse_type ng_hole_hookstat_type
const struct ng_parse_type ng_parse_hookbuf_type
Definition at line 73 of file ng_hole.c.
◆ ng_hole_hookstat_type
Initial value:= {
}
static const struct ng_parse_struct_field ng_hole_hookstat_type_fields[]
const struct ng_parse_type ng_parse_struct_type
Definition at line 67 of file ng_hole.c.
◆ ng_hole_hookstat_type_fields
Initial value:=
#define NG_HOLE_HOOKSTAT_TYPE_INFO
Definition at line 65 of file ng_hole.c.
◆ ngh_cons
◆ ngh_disconnect
◆ ngh_newhook
◆ ngh_rcvdata
◆ ngh_rcvmsg
◆ typestruct
Initial value:= {
}
static ng_disconnect_t ngh_disconnect
static ng_rcvmsg_t ngh_rcvmsg
static ng_constructor_t ngh_cons
static const struct ng_cmdlist ng_hole_cmdlist[]
static ng_rcvdata_t ngh_rcvdata
static ng_newhook_t ngh_newhook
#define NG_HOLE_NODE_TYPE
Definition at line 105 of file ng_hole.c.