43#ifndef _NETGRAPH_NG_ONE2MANY_H_
44#define _NETGRAPH_NG_ONE2MANY_H_
47#define NG_ONE2MANY_NODE_TYPE "one2many"
48#define NGM_ONE2MANY_COOKIE 1100897444
51#define NG_ONE2MANY_HOOK_ONE "one"
52#define NG_ONE2MANY_HOOK_MANY_PREFIX "many"
53#define NG_ONE2MANY_HOOK_MANY_FMT "many%d"
56#define NG_ONE2MANY_MAX_LINKS 64
59#define NG_ONE2MANY_ONE_LINKNUM (-1)
62#define NG_ONE2MANY_XMIT_ROUNDROBIN 1
63#define NG_ONE2MANY_XMIT_ALL 2
64#define NG_ONE2MANY_XMIT_FAILOVER 3
67#define NG_ONE2MANY_FAIL_MANUAL 1
68#define NG_ONE2MANY_FAIL_NOTIFY 2
78#define NG_ONE2MANY_CONFIG_TYPE_INFO(atype) { \
79 { "xmitAlg", &ng_parse_uint32_type }, \
80 { "failAlg", &ng_parse_uint32_type }, \
81 { "enabledLinks", (atype) }, \
95#define NG_ONE2MANY_LINK_STATS_TYPE_INFO { \
96 { "recvOctets", &ng_parse_uint64_type }, \
97 { "recvPackets", &ng_parse_uint64_type }, \
98 { "xmitOctets", &ng_parse_uint64_type }, \
99 { "xmitPackets", &ng_parse_uint64_type }, \
100 { "memoryFailures", &ng_parse_uint64_type }, \
#define NG_ONE2MANY_MAX_LINKS
@ NGM_ONE2MANY_SET_CONFIG
@ NGM_ONE2MANY_GET_CONFIG
@ NGM_ONE2MANY_GETCLR_STATS
u_char enabledLinks[NG_ONE2MANY_MAX_LINKS]