Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/in_rmx.c
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Initialize our routing tree. | * Initialize our routing tree. | ||||
*/ | */ | ||||
int | int | ||||
in_inithead(void **head, int off, u_int fibnum) | in_inithead(void **head, int off, u_int fibnum) | ||||
{ | { | ||||
struct rib_head *rh; | struct rib_head *rh; | ||||
rh = rt_table_init(32, AF_INET, fibnum); | rh = rt_table_init(32, sizeof(struct in_addr), AF_INET, fibnum); | ||||
if (rh == NULL) | if (rh == NULL) | ||||
return (0); | return (0); | ||||
rh->rnh_addaddr = in_addroute; | rh->rnh_addaddr = in_addroute; | ||||
*head = (void *)rh; | *head = (void *)rh; | ||||
if (_in_rt_was_here == 0 ) { | if (_in_rt_was_here == 0 ) { | ||||
_in_rt_was_here = 1; | _in_rt_was_here = 1; | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |