Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/raw_ip.c
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | rip_inpcb_init(void *mem, int size, int flags) | ||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
rip_init(void) | rip_init(void) | ||||
{ | { | ||||
in_pcbinfo_init(&V_ripcbinfo, "rip", &V_ripcb, INP_PCBHASH_RAW_SIZE, | in_pcbinfo_init(&V_ripcbinfo, "rip", &V_ripcb, INP_PCBHASH_RAW_SIZE, | ||||
1, "ripcb", rip_inpcb_init, NULL, UMA_ZONE_NOFREE, | 1, "ripcb", rip_inpcb_init, NULL, 0, IPI_HASHFIELDS_NONE); | ||||
IPI_HASHFIELDS_NONE); | |||||
EVENTHANDLER_REGISTER(maxsockets_change, rip_zone_change, NULL, | EVENTHANDLER_REGISTER(maxsockets_change, rip_zone_change, NULL, | ||||
EVENTHANDLER_PRI_ANY); | EVENTHANDLER_PRI_ANY); | ||||
} | } | ||||
#ifdef VIMAGE | #ifdef VIMAGE | ||||
void | void | ||||
rip_destroy(void) | rip_destroy(void) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 911 Lines • Show Last 20 Lines |