#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/malloc.h>
#include <sys/ctype.h>
#include <sys/errno.h>
#include <sys/syslog.h>
#include <netgraph/ng_message.h>
#include <netgraph/ng_parse.h>
#include <netgraph/ng_sample.h>
#include <netgraph/netgraph.h>
Go to the source code of this file.
◆ M_NETGRAPH_XXX
#define M_NETGRAPH_XXX M_NETGRAPH |
◆ xxx_p
◆ NETGRAPH_INIT()
NETGRAPH_INIT |
( |
xxx |
, |
|
|
& |
typestruct |
|
) |
| |
◆ ng_xxx_connect()
static int ng_xxx_connect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ng_xxx_constructor()
static int ng_xxx_constructor |
( |
node_p |
node | ) |
|
|
static |
◆ ng_xxx_disconnect()
static int ng_xxx_disconnect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ng_xxx_newhook()
static int ng_xxx_newhook |
( |
node_p |
node, |
|
|
hook_p |
hook, |
|
|
const char * |
name |
|
) |
| |
|
static |
Definition at line 182 of file ng_sample.c.
References XXX::channel, XXX::debughook, dlci, XXX_hookinfo::dlci, XXX::downstream_hook, XXX::flags, XXX_hookinfo::hook, name, NG_HOOK_SET_PRIVATE, NG_NODE_PRIVATE, NG_XXX_HOOK_DEBUG, NG_XXX_HOOK_DLCI_LEADIN, NG_XXX_HOOK_DOWNSTREAM, XXX::node, and XXX_NUM_DLCIS.
◆ ng_xxx_rcvdata()
Definition at line 325 of file ng_sample.c.
References XXX_hookinfo::channel, XXX::channel, dlci, XXX_hookinfo::dlci, XXX::downstream_hook, XXX_hookinfo::hook, NG_FREE_ITEM, NG_FREE_M, NG_FWD_NEW_DATA, NG_HOOK_NODE, NG_HOOK_PRIVATE, NG_NODE_PRIVATE, NGI_GET_M, XXX::packets_in, XXX::packets_out, and XXX_NUM_DLCIS.
◆ ng_xxx_rcvmsg()
Definition at line 259 of file ng_sample.c.
References ng_mesg::ng_msghdr::arglen, ng_mesg::ng_msghdr::cmd, ng_mesg::data, XXX::flags, ng_mesg::header, NG_FREE_MSG, NG_MKRESPONSE, NG_NODE_PRIVATE, NG_RESPOND_MSG, NGI_GET_MSG, NGM_XXX_COOKIE, NGM_XXX_GET_STATUS, NGM_XXX_SET_FLAG, XXX::node, XXX::packets_in, XXX::packets_out, and ng_mesg::ng_msghdr::typecookie.
◆ ng_xxx_shutdown()
static int ng_xxx_shutdown |
( |
node_p |
node | ) |
|
|
static |
◆ ng_xxx_cmdlist
Initial value:= {
{
"getstatus",
NULL,
},
{
"setflag",
NULL
},
{ 0 }
}
const struct ng_parse_type ng_parse_int32_type
static const struct ng_parse_type ng_xxx_stat_type
Definition at line 88 of file ng_sample.c.
◆ ng_xxx_connect
◆ ng_xxx_constructor
◆ ng_xxx_disconnect
◆ ng_xxx_newhook
◆ ng_xxx_rcvdata
◆ ng_xxx_rcvmsg
◆ ng_xxx_shutdown
◆ ng_xxx_stat_type
Initial value:= {
}
const struct ng_parse_type ng_parse_struct_type
static const struct ng_parse_struct_field ng_xxx_stat_type_fields[]
Definition at line 82 of file ng_sample.c.
◆ ng_xxx_stat_type_fields
◆ typestruct
Initial value:= {
}
static ng_newhook_t ng_xxx_newhook
static ng_rcvdata_t ng_xxx_rcvdata
static ng_rcvmsg_t ng_xxx_rcvmsg
static ng_disconnect_t ng_xxx_disconnect
static const struct ng_cmdlist ng_xxx_cmdlist[]
static ng_shutdown_t ng_xxx_shutdown
static ng_connect_t ng_xxx_connect
static ng_constructor_t ng_xxx_constructor
Definition at line 107 of file ng_sample.c.