Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/raw_ip.c
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | rip_delhash(struct inpcb *inp) | ||||
INP_HASH_WLOCK_ASSERT(inp->inp_pcbinfo); | INP_HASH_WLOCK_ASSERT(inp->inp_pcbinfo); | ||||
INP_WLOCK_ASSERT(inp); | INP_WLOCK_ASSERT(inp); | ||||
CK_LIST_REMOVE(inp, inp_hash); | CK_LIST_REMOVE(inp, inp_hash); | ||||
} | } | ||||
#endif /* INET */ | #endif /* INET */ | ||||
INPCBSTORAGE_DEFINE(ripcbstor, "rawinp", "ripcb", "rip", "riphash"); | INPCBSTORAGE_DEFINE(ripcbstor, inpcb, "rawinp", "ripcb", "rip", "riphash"); | ||||
static void | static void | ||||
rip_init(void *arg __unused) | rip_init(void *arg __unused) | ||||
{ | { | ||||
in_pcbinfo_init(&V_ripcbinfo, &ripcbstor, INP_PCBHASH_RAW_SIZE, 1); | in_pcbinfo_init(&V_ripcbinfo, &ripcbstor, INP_PCBHASH_RAW_SIZE, 1); | ||||
} | } | ||||
VNET_SYSINIT(rip_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rip_init, NULL); | VNET_SYSINIT(rip_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rip_init, NULL); | ||||
▲ Show 20 Lines • Show All 899 Lines • Show Last 20 Lines |