Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/in6_rmx.c
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
int | int | ||||
in6_inithead(void **head, int off, u_int fibnum) | in6_inithead(void **head, int off, u_int fibnum) | ||||
{ | { | ||||
struct rib_head *rh; | struct rib_head *rh; | ||||
rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3, | rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3, | ||||
AF_INET6, fibnum); | sizeof(struct in6_addr), AF_INET6, fibnum); | ||||
if (rh == NULL) | if (rh == NULL) | ||||
return (0); | return (0); | ||||
rh->rnh_addaddr = in6_addroute; | rh->rnh_addaddr = in6_addroute; | ||||
*head = (void *)rh; | *head = (void *)rh; | ||||
return (1); | return (1); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |