FreeBSD kernel netgraph code
ng_one2many.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ng_one2many_config
 
struct  ng_one2many_link_stats
 

Macros

#define NG_ONE2MANY_NODE_TYPE   "one2many"
 
#define NGM_ONE2MANY_COOKIE   1100897444
 
#define NG_ONE2MANY_HOOK_ONE   "one"
 
#define NG_ONE2MANY_HOOK_MANY_PREFIX   "many" /* append decimal integer */
 
#define NG_ONE2MANY_HOOK_MANY_FMT   "many%d" /* for use with printf(3) */
 
#define NG_ONE2MANY_MAX_LINKS   64
 
#define NG_ONE2MANY_ONE_LINKNUM   (-1)
 
#define NG_ONE2MANY_XMIT_ROUNDROBIN   1 /* round-robin delivery */
 
#define NG_ONE2MANY_XMIT_ALL   2 /* send packets to all many hooks */
 
#define NG_ONE2MANY_XMIT_FAILOVER   3 /* send packets to first active "many" */
 
#define NG_ONE2MANY_FAIL_MANUAL   1 /* use enabledLinks[] array */
 
#define NG_ONE2MANY_FAIL_NOTIFY   2 /* listen to flow control msgs */
 
#define NG_ONE2MANY_CONFIG_TYPE_INFO(atype)
 
#define NG_ONE2MANY_LINK_STATS_TYPE_INFO
 

Enumerations

enum  {
  NGM_ONE2MANY_SET_CONFIG , NGM_ONE2MANY_GET_CONFIG , NGM_ONE2MANY_GET_STATS , NGM_ONE2MANY_CLR_STATS ,
  NGM_ONE2MANY_GETCLR_STATS
}
 

Macro Definition Documentation

◆ NG_ONE2MANY_CONFIG_TYPE_INFO

#define NG_ONE2MANY_CONFIG_TYPE_INFO (   atype)
Value:
{ \
{ "xmitAlg", &ng_parse_uint32_type }, \
{ "failAlg", &ng_parse_uint32_type }, \
{ "enabledLinks", (atype) }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint32_type
Definition: ng_parse.c:608

Definition at line 78 of file ng_one2many.h.

◆ NG_ONE2MANY_FAIL_MANUAL

#define NG_ONE2MANY_FAIL_MANUAL   1 /* use enabledLinks[] array */

Definition at line 67 of file ng_one2many.h.

◆ NG_ONE2MANY_FAIL_NOTIFY

#define NG_ONE2MANY_FAIL_NOTIFY   2 /* listen to flow control msgs */

Definition at line 68 of file ng_one2many.h.

◆ NG_ONE2MANY_HOOK_MANY_FMT

#define NG_ONE2MANY_HOOK_MANY_FMT   "many%d" /* for use with printf(3) */

Definition at line 53 of file ng_one2many.h.

◆ NG_ONE2MANY_HOOK_MANY_PREFIX

#define NG_ONE2MANY_HOOK_MANY_PREFIX   "many" /* append decimal integer */

Definition at line 52 of file ng_one2many.h.

◆ NG_ONE2MANY_HOOK_ONE

#define NG_ONE2MANY_HOOK_ONE   "one"

Definition at line 51 of file ng_one2many.h.

◆ NG_ONE2MANY_LINK_STATS_TYPE_INFO

#define NG_ONE2MANY_LINK_STATS_TYPE_INFO
Value:
{ \
{ "recvOctets", &ng_parse_uint64_type }, \
{ "recvPackets", &ng_parse_uint64_type }, \
{ "xmitOctets", &ng_parse_uint64_type }, \
{ "xmitPackets", &ng_parse_uint64_type }, \
{ "memoryFailures", &ng_parse_uint64_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint64_type
Definition: ng_parse.c:703

Definition at line 95 of file ng_one2many.h.

◆ NG_ONE2MANY_MAX_LINKS

#define NG_ONE2MANY_MAX_LINKS   64

Definition at line 56 of file ng_one2many.h.

◆ NG_ONE2MANY_NODE_TYPE

#define NG_ONE2MANY_NODE_TYPE   "one2many"

Definition at line 47 of file ng_one2many.h.

◆ NG_ONE2MANY_ONE_LINKNUM

#define NG_ONE2MANY_ONE_LINKNUM   (-1)

Definition at line 59 of file ng_one2many.h.

◆ NG_ONE2MANY_XMIT_ALL

#define NG_ONE2MANY_XMIT_ALL   2 /* send packets to all many hooks */

Definition at line 63 of file ng_one2many.h.

◆ NG_ONE2MANY_XMIT_FAILOVER

#define NG_ONE2MANY_XMIT_FAILOVER   3 /* send packets to first active "many" */

Definition at line 64 of file ng_one2many.h.

◆ NG_ONE2MANY_XMIT_ROUNDROBIN

#define NG_ONE2MANY_XMIT_ROUNDROBIN   1 /* round-robin delivery */

Definition at line 62 of file ng_one2many.h.

◆ NGM_ONE2MANY_COOKIE

#define NGM_ONE2MANY_COOKIE   1100897444

Definition at line 48 of file ng_one2many.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NGM_ONE2MANY_SET_CONFIG 
NGM_ONE2MANY_GET_CONFIG 
NGM_ONE2MANY_GET_STATS 
NGM_ONE2MANY_CLR_STATS 
NGM_ONE2MANY_GETCLR_STATS 

Definition at line 105 of file ng_one2many.h.