Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/ng_bridge.h
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | #define NG_BRIDGE_STATS_TYPE_INFO { \ | ||||
{ "loopDrops", &ng_parse_uint64_type }, \ | { "loopDrops", &ng_parse_uint64_type }, \ | ||||
{ "loopDetects", &ng_parse_uint64_type }, \ | { "loopDetects", &ng_parse_uint64_type }, \ | ||||
{ "memoryFailures", &ng_parse_uint64_type }, \ | { "memoryFailures", &ng_parse_uint64_type }, \ | ||||
{ NULL } \ | { NULL } \ | ||||
} | } | ||||
struct ng_bridge_link; | struct ng_bridge_link; | ||||
typedef struct ng_bridge_link *link_p; | typedef struct ng_bridge_link *link_p; | ||||
/* Structure describing a single host */ | |||||
struct ng_bridge_host { | |||||
u_char addr[6]; /* ethernet address */ | |||||
link_p link; /* link where addr can be found */ | |||||
u_int16_t age; /* seconds ago entry was created */ | |||||
u_int16_t staleness; /* seconds ago host last heard from */ | |||||
}; | |||||
/* external representation of the host */ | /* external representation of the host */ | ||||
struct ng_bridge_hostent { | struct ng_bridge_hostent { | ||||
u_char addr[6]; /* ethernet address */ | u_char addr[6]; /* ethernet address */ | ||||
char hook[NG_HOOKSIZ]; /* link where addr can be found */ | char hook[NG_HOOKSIZ]; /* link where addr can be found */ | ||||
u_int16_t age; /* seconds ago entry was created */ | u_int16_t age; /* seconds ago entry was created */ | ||||
u_int16_t staleness; /* seconds ago host last heard from */ | u_int16_t staleness; /* seconds ago host last heard from */ | ||||
}; | }; | ||||
Show All 36 Lines |