#include <sys/param.h>
#include <sys/systm.h>
#include <sys/errno.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_tee.h>
Go to the source code of this file.
◆ hi_p
◆ sc_p
◆ NETGRAPH_INIT()
NETGRAPH_INIT |
( |
tee |
, |
|
|
& |
ng_tee_typestruct |
|
) |
| |
◆ ng_tee_close()
static int ng_tee_close |
( |
node_p |
node | ) |
|
|
static |
◆ ng_tee_constructor()
static int ng_tee_constructor |
( |
node_p |
node | ) |
|
|
static |
◆ ng_tee_disconnect()
static int ng_tee_disconnect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ng_tee_newhook()
static int ng_tee_newhook |
( |
node_p |
node, |
|
|
hook_p |
hook, |
|
|
const char * |
name |
|
) |
| |
|
static |
Definition at line 166 of file ng_tee.c.
References hookinfo::dest, hookinfo::dup, hookinfo::hook, privdata::left, privdata::left2right, name, NG_HOOK_SET_PRIVATE, NG_NODE_PRIVATE, NG_TEE_HOOK_LEFT, NG_TEE_HOOK_LEFT2RIGHT, NG_TEE_HOOK_RIGHT, NG_TEE_HOOK_RIGHT2LEFT, privdata::right, privdata::right2left, and hookinfo::stats.
◆ ng_tee_rcvdata()
◆ ng_tee_rcvmsg()
Definition at line 208 of file ng_tee.c.
References ng_mesg::ng_msghdr::cmd, ng_mesg::data, hookinfo::dest, ng_mesg::header, NG_FREE_MSG, NG_FWD_ITEM_HOOK, NG_HOOK_PRIVATE, NG_MKRESPONSE, NG_NODE_PRIVATE, NG_RESPOND_MSG, NGI_GET_MSG, NGI_MSG, NGM_FLOW_COOKIE, NGM_TEE_CLR_STATS, NGM_TEE_COOKIE, NGM_TEE_GET_STATS, NGM_TEE_GETCLR_STATS, ng_async_private::stats, and ng_mesg::ng_msghdr::typecookie.
◆ ng_tee_shutdown()
static int ng_tee_shutdown |
( |
node_p |
node | ) |
|
|
static |
◆ ng_tee_close
◆ ng_tee_cmds
Initial value:= {
{
"getstats",
NULL,
},
{
"clrstats",
NULL,
NULL
},
{
"getclrstats",
NULL,
},
{ 0 }
}
static const struct ng_parse_type ng_tee_stats_type
Definition at line 108 of file ng_tee.c.
◆ ng_tee_constructor
◆ ng_tee_disconnect
◆ ng_tee_hookstat_type
Initial value:= {
}
const struct ng_parse_type ng_parse_struct_type
static const struct ng_parse_struct_field ng_tee_hookstat_type_fields[]
Definition at line 94 of file ng_tee.c.
◆ ng_tee_hookstat_type_fields
◆ ng_tee_newhook
◆ ng_tee_rcvdata
◆ ng_tee_rcvmsg
◆ ng_tee_shutdown
◆ ng_tee_stats_type
Initial value:= {
}
static const struct ng_parse_struct_field ng_tee_stats_type_fields[]
Definition at line 102 of file ng_tee.c.
◆ ng_tee_stats_type_fields
◆ ng_tee_typestruct
Initial value:= {
}
static ng_rcvdata_t ng_tee_rcvdata
static ng_shutdown_t ng_tee_shutdown
static ng_rcvmsg_t ng_tee_rcvmsg
static const struct ng_cmdlist ng_tee_cmds[]
static ng_constructor_t ng_tee_constructor
static ng_disconnect_t ng_tee_disconnect
static ng_close_t ng_tee_close
static ng_newhook_t ng_tee_newhook
Definition at line 134 of file ng_tee.c.