43#ifndef _NETGRAPH_NG_BRIDGE_H_
44#define _NETGRAPH_NG_BRIDGE_H_
47#define NG_BRIDGE_NODE_TYPE "bridge"
48#define NGM_BRIDGE_COOKIE 1569321993
51#define NG_BRIDGE_HOOK_LINK_PREFIX "link"
52#define NG_BRIDGE_HOOK_LINK_FMT "link%d"
53#define NG_BRIDGE_HOOK_UPLINK_PREFIX "uplink"
54#define NG_BRIDGE_HOOK_UPLINK_FMT "uplink%d"
65#define NG_BRIDGE_CONFIG_TYPE_INFO { \
66 { "debugLevel", &ng_parse_uint8_type }, \
67 { "loopTimeout", &ng_parse_uint32_type }, \
68 { "maxStaleness", &ng_parse_uint32_type }, \
69 { "minStableAge", &ng_parse_uint32_type }, \
92#define NG_BRIDGE_STATS_TYPE_INFO { \
93 { "recvOctets", &ng_parse_uint64_type }, \
94 { "recvPackets", &ng_parse_uint64_type }, \
95 { "recvMulticast", &ng_parse_uint64_type }, \
96 { "recvBroadcast", &ng_parse_uint64_type }, \
97 { "recvUnknown", &ng_parse_uint64_type }, \
98 { "recvRunts", &ng_parse_uint64_type }, \
99 { "recvInvalid", &ng_parse_uint64_type }, \
100 { "xmitOctets", &ng_parse_uint64_type }, \
101 { "xmitPackets", &ng_parse_uint64_type }, \
102 { "xmitMulticasts", &ng_parse_uint64_type }, \
103 { "xmitBroadcasts", &ng_parse_uint64_type }, \
104 { "loopDrops", &ng_parse_uint64_type }, \
105 { "loopDetects", &ng_parse_uint64_type }, \
106 { "memoryFailures", &ng_parse_uint64_type }, \
122#define NG_BRIDGE_HOST_TYPE_INFO(entype) { \
123 { "addr", (entype) }, \
124 { "hook", &ng_parse_hookbuf_type }, \
125 { "age", &ng_parse_uint16_type }, \
126 { "staleness", &ng_parse_uint16_type }, \
137#define NG_BRIDGE_HOST_ARY_TYPE_INFO(harytype) { \
138 { "numHosts", &ng_parse_uint32_type }, \
139 { "hosts", (harytype) }, \
148#define NG_BRIDGE_MOVE_HOST_TYPE_INFO(entype) { \
149 { "addr", (entype) }, \
150 { "hook", &ng_parse_hookbuf_type }, \
struct ng_bridge_link * link_p
@ NGM_BRIDGE_SET_PERSISTENT
@ NGM_BRIDGE_GETCLR_STATS
struct ng_bridge_hostent hosts[]
u_char addr[ETHER_ADDR_LEN]