#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 <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
#include <netgraph/ng_one2many.h>
Go to the source code of this file.
◆ priv_p
◆ NETGRAPH_INIT()
NETGRAPH_INIT |
( |
one2many |
, |
|
|
& |
ng_one2many_typestruct |
|
) |
| |
◆ ng_one2many_constructor()
static int ng_one2many_constructor |
( |
node_p |
node | ) |
|
|
static |
◆ ng_one2many_disconnect()
static int ng_one2many_disconnect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ng_one2many_newhook()
static int ng_one2many_newhook |
( |
node_p |
node, |
|
|
hook_p |
hook, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ ng_one2many_notify()
static void ng_one2many_notify |
( |
priv_p |
priv, |
|
|
uint32_t |
cmd |
|
) |
| |
|
static |
◆ ng_one2many_rcvdata()
Definition at line 412 of file ng_one2many.c.
References ng_one2many_link::hook, ng_one2many_link_stats::memoryFailures, NG_FREE_ITEM, NG_FREE_M, NG_FWD_ITEM_HOOK, NG_HOOK_NODE, NG_HOOK_PRIVATE, NG_NODE_PRIVATE, NG_ONE2MANY_MAX_LINKS, NG_ONE2MANY_ONE_LINKNUM, NG_ONE2MANY_XMIT_ALL, NG_ONE2MANY_XMIT_FAILOVER, NG_ONE2MANY_XMIT_ROUNDROBIN, NG_SEND_DATA_ONLY, NGI_M, ng_one2many_link_stats::recvOctets, ng_one2many_link_stats::recvPackets, ng_one2many_link::stats, ng_one2many_link_stats::xmitOctets, and ng_one2many_link_stats::xmitPackets.
◆ ng_one2many_rcvmsg()
Definition at line 254 of file ng_one2many.c.
References ng_mesg::ng_msghdr::arglen, ng_mesg::ng_msghdr::cmd, ng_mesg::data, ng_one2many_config::enabledLinks, ng_one2many_config::failAlg, ng_mesg::header, NG_FREE_MSG, NG_HOOK_PRIVATE, NG_MKRESPONSE, NG_NODE_PRIVATE, NG_ONE2MANY_FAIL_MANUAL, NG_ONE2MANY_FAIL_NOTIFY, NG_ONE2MANY_MAX_LINKS, NG_ONE2MANY_ONE_LINKNUM, ng_one2many_update_many(), NG_ONE2MANY_XMIT_ALL, NG_ONE2MANY_XMIT_FAILOVER, NG_ONE2MANY_XMIT_ROUNDROBIN, NG_RESPOND_MSG, NGI_GET_MSG, NGM_FLOW_COOKIE, NGM_LINK_IS_DOWN, NGM_LINK_IS_UP, NGM_ONE2MANY_CLR_STATS, NGM_ONE2MANY_COOKIE, NGM_ONE2MANY_GET_CONFIG, NGM_ONE2MANY_GET_STATS, NGM_ONE2MANY_GETCLR_STATS, NGM_ONE2MANY_SET_CONFIG, ng_one2many_link::stats, ng_mesg::ng_msghdr::typecookie, and ng_one2many_config::xmitAlg.
◆ ng_one2many_shutdown()
static int ng_one2many_shutdown |
( |
node_p |
node | ) |
|
|
static |
◆ ng_one2many_update_many()
static void ng_one2many_update_many |
( |
priv_p |
priv | ) |
|
|
static |
Definition at line 551 of file ng_one2many.c.
References NG_ONE2MANY_FAIL_MANUAL, NG_ONE2MANY_FAIL_NOTIFY, NG_ONE2MANY_MAX_LINKS, ng_one2many_notify(), NG_ONE2MANY_XMIT_ALL, NG_ONE2MANY_XMIT_FAILOVER, NG_ONE2MANY_XMIT_ROUNDROBIN, NGM_LINK_IS_DOWN, and NGM_LINK_IS_UP.
Referenced by ng_one2many_disconnect(), ng_one2many_newhook(), and ng_one2many_rcvmsg().
◆ ng_one2many_cmdlist
◆ ng_one2many_config_type
Initial value:= {
}
static const struct ng_parse_struct_field ng_one2many_config_type_fields[]
const struct ng_parse_type ng_parse_struct_type
Definition at line 110 of file ng_one2many.c.
◆ ng_one2many_config_type_fields
◆ ng_one2many_constructor
◆ ng_one2many_disconnect
◆ ng_one2many_enableLinks_array_type
Initial value:= {
}
static const struct ng_parse_fixedarray_info ng_one2many_enableLinks_array_type_info
const struct ng_parse_type ng_parse_fixedarray_type
Definition at line 104 of file ng_one2many.c.
◆ ng_one2many_enableLinks_array_type_info
Initial value:= {
}
#define NG_ONE2MANY_MAX_LINKS
const struct ng_parse_type ng_parse_uint8_type
Definition at line 100 of file ng_one2many.c.
◆ ng_one2many_link_stats_type
Initial value:= {
}
static const struct ng_parse_struct_field ng_one2many_link_stats_type_fields[]
Definition at line 118 of file ng_one2many.c.
◆ ng_one2many_link_stats_type_fields
◆ ng_one2many_newhook
◆ ng_one2many_rcvdata
◆ ng_one2many_rcvmsg
◆ ng_one2many_shutdown
◆ ng_one2many_typestruct
struct ng_type ng_one2many_typestruct |
|
static |
Initial value:= {
}
static ng_constructor_t ng_one2many_constructor
static ng_newhook_t ng_one2many_newhook
static ng_shutdown_t ng_one2many_shutdown
static ng_rcvmsg_t ng_one2many_rcvmsg
static ng_rcvdata_t ng_one2many_rcvdata
static ng_disconnect_t ng_one2many_disconnect
static const struct ng_cmdlist ng_one2many_cmdlist[]
#define NG_ONE2MANY_NODE_TYPE
Definition at line 164 of file ng_one2many.c.