FreeBSD kernel netgraph code
ng_bridge.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_bridge_config
 
struct  ng_bridge_link_stats
 
struct  ng_bridge_hostent
 
struct  ng_bridge_host_ary
 
struct  ng_bridge_move_host
 

Macros

#define NG_BRIDGE_NODE_TYPE   "bridge"
 
#define NGM_BRIDGE_COOKIE   1569321993
 
#define NG_BRIDGE_HOOK_LINK_PREFIX   "link" /* append decimal integer */
 
#define NG_BRIDGE_HOOK_LINK_FMT   "link%d" /* for use with printf(3) */
 
#define NG_BRIDGE_HOOK_UPLINK_PREFIX   "uplink" /* append decimal integer */
 
#define NG_BRIDGE_HOOK_UPLINK_FMT   "uplink%d" /* for use with printf(3) */
 
#define NG_BRIDGE_CONFIG_TYPE_INFO
 
#define NG_BRIDGE_STATS_TYPE_INFO
 
#define NG_BRIDGE_HOST_TYPE_INFO(entype)
 
#define NG_BRIDGE_HOST_ARY_TYPE_INFO(harytype)
 
#define NG_BRIDGE_MOVE_HOST_TYPE_INFO(entype)
 

Typedefs

typedef struct ng_bridge_linklink_p
 

Enumerations

enum  {
  NGM_BRIDGE_SET_CONFIG = 1 , NGM_BRIDGE_GET_CONFIG , NGM_BRIDGE_RESET , NGM_BRIDGE_GET_STATS ,
  NGM_BRIDGE_CLR_STATS , NGM_BRIDGE_GETCLR_STATS , NGM_BRIDGE_GET_TABLE , NGM_BRIDGE_SET_PERSISTENT ,
  NGM_BRIDGE_MOVE_HOST
}
 

Macro Definition Documentation

◆ NG_BRIDGE_CONFIG_TYPE_INFO

#define NG_BRIDGE_CONFIG_TYPE_INFO
Value:
{ \
{ "debugLevel", &ng_parse_uint8_type }, \
{ "loopTimeout", &ng_parse_uint32_type }, \
{ "maxStaleness", &ng_parse_uint32_type }, \
{ "minStableAge", &ng_parse_uint32_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint32_type
Definition: ng_parse.c:608
const struct ng_parse_type ng_parse_uint8_type
Definition: ng_parse.c:413

Definition at line 65 of file ng_bridge.h.

◆ NG_BRIDGE_HOOK_LINK_FMT

#define NG_BRIDGE_HOOK_LINK_FMT   "link%d" /* for use with printf(3) */

Definition at line 52 of file ng_bridge.h.

◆ NG_BRIDGE_HOOK_LINK_PREFIX

#define NG_BRIDGE_HOOK_LINK_PREFIX   "link" /* append decimal integer */

Definition at line 51 of file ng_bridge.h.

◆ NG_BRIDGE_HOOK_UPLINK_FMT

#define NG_BRIDGE_HOOK_UPLINK_FMT   "uplink%d" /* for use with printf(3) */

Definition at line 54 of file ng_bridge.h.

◆ NG_BRIDGE_HOOK_UPLINK_PREFIX

#define NG_BRIDGE_HOOK_UPLINK_PREFIX   "uplink" /* append decimal integer */

Definition at line 53 of file ng_bridge.h.

◆ NG_BRIDGE_HOST_ARY_TYPE_INFO

#define NG_BRIDGE_HOST_ARY_TYPE_INFO (   harytype)
Value:
{ \
{ "numHosts", &ng_parse_uint32_type }, \
{ "hosts", (harytype) }, \
{ NULL } \
}

Definition at line 137 of file ng_bridge.h.

◆ NG_BRIDGE_HOST_TYPE_INFO

#define NG_BRIDGE_HOST_TYPE_INFO (   entype)
Value:
{ \
{ "addr", (entype) }, \
{ "hook", &ng_parse_hookbuf_type }, \
{ "age", &ng_parse_uint16_type }, \
{ "staleness", &ng_parse_uint16_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint16_type
Definition: ng_parse.c:509
const struct ng_parse_type ng_parse_hookbuf_type
Definition: ng_parse.c:851

Definition at line 122 of file ng_bridge.h.

◆ NG_BRIDGE_MOVE_HOST_TYPE_INFO

#define NG_BRIDGE_MOVE_HOST_TYPE_INFO (   entype)
Value:
{ \
{ "addr", (entype) }, \
{ "hook", &ng_parse_hookbuf_type }, \
}

Definition at line 148 of file ng_bridge.h.

◆ NG_BRIDGE_NODE_TYPE

#define NG_BRIDGE_NODE_TYPE   "bridge"

Definition at line 47 of file ng_bridge.h.

◆ NG_BRIDGE_STATS_TYPE_INFO

#define NG_BRIDGE_STATS_TYPE_INFO
Value:
{ \
{ "recvOctets", &ng_parse_uint64_type }, \
{ "recvPackets", &ng_parse_uint64_type }, \
{ "recvMulticast", &ng_parse_uint64_type }, \
{ "recvBroadcast", &ng_parse_uint64_type }, \
{ "recvUnknown", &ng_parse_uint64_type }, \
{ "recvRunts", &ng_parse_uint64_type }, \
{ "recvInvalid", &ng_parse_uint64_type }, \
{ "xmitOctets", &ng_parse_uint64_type }, \
{ "xmitPackets", &ng_parse_uint64_type }, \
{ "xmitMulticasts", &ng_parse_uint64_type }, \
{ "xmitBroadcasts", &ng_parse_uint64_type }, \
{ "loopDrops", &ng_parse_uint64_type }, \
{ "loopDetects", &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 92 of file ng_bridge.h.

◆ NGM_BRIDGE_COOKIE

#define NGM_BRIDGE_COOKIE   1569321993

Definition at line 48 of file ng_bridge.h.

Typedef Documentation

◆ link_p

typedef struct ng_bridge_link* link_p

Definition at line 111 of file ng_bridge.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NGM_BRIDGE_SET_CONFIG 
NGM_BRIDGE_GET_CONFIG 
NGM_BRIDGE_RESET 
NGM_BRIDGE_GET_STATS 
NGM_BRIDGE_CLR_STATS 
NGM_BRIDGE_GETCLR_STATS 
NGM_BRIDGE_GET_TABLE 
NGM_BRIDGE_SET_PERSISTENT 
NGM_BRIDGE_MOVE_HOST 

Definition at line 154 of file ng_bridge.h.