Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.h
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
* is not required. | * is not required. | ||||
*/ | */ | ||||
typedef volatile u_int rt_gen_t; /* tree generation (for adds) */ | typedef volatile u_int rt_gen_t; /* tree generation (for adds) */ | ||||
#define RT_GEN(fibnum, af) rt_tables_get_gen(fibnum, af) | #define RT_GEN(fibnum, af) rt_tables_get_gen(fibnum, af) | ||||
#define RT_DEFAULT_FIB 0 /* Explicitly mark fib=0 restricted cases */ | #define RT_DEFAULT_FIB 0 /* Explicitly mark fib=0 restricted cases */ | ||||
#define RT_ALL_FIBS -1 /* Announce event for every fib */ | #define RT_ALL_FIBS -1 /* Announce event for every fib */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
extern u_int rt_numfibs; /* number of usable routing tables */ | VNET_DECLARE(uint32_t, _rt_numfibs); /* number of existing route tables */ | ||||
#define V_rt_numfibs VNET(_rt_numfibs) | |||||
/* temporary compat arg */ | |||||
#define rt_numfibs V_rt_numfibs | |||||
VNET_DECLARE(u_int, rt_add_addr_allfibs); /* Announce interfaces to all fibs */ | VNET_DECLARE(u_int, rt_add_addr_allfibs); /* Announce interfaces to all fibs */ | ||||
#define V_rt_add_addr_allfibs VNET(rt_add_addr_allfibs) | #define V_rt_add_addr_allfibs VNET(rt_add_addr_allfibs) | ||||
#endif | #endif | ||||
/* | /* | ||||
* We distinguish between routes to hosts and routes to networks, | * We distinguish between routes to hosts and routes to networks, | ||||
* preferring the former if available. For each route we infer | * preferring the former if available. For each route we infer | ||||
* the interface to use from the gateway address supplied when | * the interface to use from the gateway address supplied when | ||||
▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines |