Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_var.h
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
#define CHK_STRUCT_ROUTE_COMPAT(_ro_new, _dst_new) \ | #define CHK_STRUCT_ROUTE_COMPAT(_ro_new, _dst_new) \ | ||||
CHK_STRUCT_ROUTE_FIELDS(_ro_new); \ | CHK_STRUCT_ROUTE_FIELDS(_ro_new); \ | ||||
_Static_assert(__offsetof(struct route, ro_dst) == __offsetof(_ro_new, _dst_new),\ | _Static_assert(__offsetof(struct route, ro_dst) == __offsetof(_ro_new, _dst_new),\ | ||||
"ro_dst and " #_dst_new " are at different offset") | "ro_dst and " #_dst_new " are at different offset") | ||||
struct rib_head *rt_tables_get_rnh(uint32_t table, sa_family_t family); | struct rib_head *rt_tables_get_rnh(uint32_t table, sa_family_t family); | ||||
void rt_mpath_init_rnh(struct rib_head *rnh); | void rt_mpath_init_rnh(struct rib_head *rnh); | ||||
int rt_getifa_fib(struct rt_addrinfo *info, u_int fibnum); | int rt_getifa_fib(struct rt_addrinfo *info, u_int fibnum); | ||||
void rt_setmetrics(const struct rt_addrinfo *info, struct rtentry *rt); | |||||
#ifdef RADIX_MPATH | #ifdef RADIX_MPATH | ||||
struct radix_node *rt_mpath_unlink(struct rib_head *rnh, | struct radix_node *rt_mpath_unlink(struct rib_head *rnh, | ||||
struct rt_addrinfo *info, struct rtentry *rto, int *perror); | struct rt_addrinfo *info, struct rtentry *rto, int *perror); | ||||
#endif | #endif | ||||
struct rib_cmd_info; | struct rib_cmd_info; | ||||
VNET_PCPUSTAT_DECLARE(struct rtstat, rtstat); | VNET_PCPUSTAT_DECLARE(struct rtstat, rtstat); | ||||
#define RTSTAT_ADD(name, val) \ | #define RTSTAT_ADD(name, val) \ | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |