Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.c
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
* SI_ORDER_MIDDLE. | * SI_ORDER_MIDDLE. | ||||
*/ | */ | ||||
static void | static void | ||||
route_init(void) | route_init(void) | ||||
{ | { | ||||
nhops_init(); | nhops_init(); | ||||
} | } | ||||
SYSINIT(route_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, route_init, NULL); | SYSINIT(route_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, route_init); | ||||
struct rib_head * | struct rib_head * | ||||
rt_table_init(int offset, int family, u_int fibnum) | rt_table_init(int offset, int family, u_int fibnum) | ||||
{ | { | ||||
struct rib_head *rh; | struct rib_head *rh; | ||||
rh = malloc(sizeof(struct rib_head), M_RTABLE, M_WAITOK | M_ZERO); | rh = malloc(sizeof(struct rib_head), M_RTABLE, M_WAITOK | M_ZERO); | ||||
▲ Show 20 Lines • Show All 601 Lines • Show Last 20 Lines |