Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
* by a protocol slowtimo counter. | * by a protocol slowtimo counter. | ||||
*/ | */ | ||||
#define RTM_RTTUNIT 1000000 /* units for rtt, rttvar, as units per sec */ | #define RTM_RTTUNIT 1000000 /* units for rtt, rttvar, as units per sec */ | ||||
#define RTTTOPRHZ(r) ((r) / (RTM_RTTUNIT / PR_SLOWHZ)) | #define RTTTOPRHZ(r) ((r) / (RTM_RTTUNIT / PR_SLOWHZ)) | ||||
/* lle state is exported in rmx_state rt_metrics field */ | /* lle state is exported in rmx_state rt_metrics field */ | ||||
#define rmx_state rmx_weight | #define rmx_state rmx_weight | ||||
/* default route weight */ | |||||
#define RT_DEFAULT_WEIGHT 1 | |||||
#define RT_MAX_WEIGHT 16777215 /* 3 bytes */ | |||||
/* | /* | ||||
* Keep a generation count of routing table, incremented on route addition, | * Keep a generation count of routing table, incremented on route addition, | ||||
* so we can invalidate caches. This is accessed without a lock, as precision | * so we can invalidate caches. This is accessed without a lock, as precision | ||||
* 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) | ||||
▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines |