Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/ng_bridge.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
#ifdef NGM_BRIDGE_TABLE_ABI | #ifdef NGM_BRIDGE_TABLE_ABI | ||||
#define NGM_BRIDGE_COOKIE_TBL 967239368 | #define NGM_BRIDGE_COOKIE_TBL 967239368 | ||||
#define NG_BRIDGE_MAX_LINKS 32 | #define NG_BRIDGE_MAX_LINKS 32 | ||||
#endif /* NGM_BRIDGE_TABLE_ABI */ | #endif /* NGM_BRIDGE_TABLE_ABI */ | ||||
/* Hook names */ | /* Hook names */ | ||||
#define NG_BRIDGE_HOOK_LINK_PREFIX "link" /* append decimal integer */ | #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_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) */ | |||||
/* Node configuration structure */ | /* Node configuration structure */ | ||||
struct ng_bridge_config { | struct ng_bridge_config { | ||||
u_char debugLevel; /* debug level */ | u_char debugLevel; /* debug level */ | ||||
u_int32_t loopTimeout; /* link loopback mute time */ | u_int32_t loopTimeout; /* link loopback mute time */ | ||||
u_int32_t maxStaleness; /* max host age before nuking */ | u_int32_t maxStaleness; /* max host age before nuking */ | ||||
u_int32_t minStableAge; /* min time for a stable host */ | u_int32_t minStableAge; /* min time for a stable host */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |