Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/in_pcb.c
Show First 20 Lines • Show All 1,313 Lines • ▼ Show 20 Lines | #ifdef INET6 | ||||
} | } | ||||
#endif | #endif | ||||
if (inp->inp_options) | if (inp->inp_options) | ||||
(void)m_free(inp->inp_options); | (void)m_free(inp->inp_options); | ||||
#ifdef INET | #ifdef INET | ||||
if (inp->inp_moptions != NULL) | if (inp->inp_moptions != NULL) | ||||
inp_freemoptions(inp->inp_moptions); | inp_freemoptions(inp->inp_moptions); | ||||
#endif | #endif | ||||
RO_RTFREE(&inp->inp_route); | RO_INVALIDATE_CACHE(&inp->inp_route); | ||||
if (inp->inp_route.ro_lle) | |||||
LLE_FREE(inp->inp_route.ro_lle); /* zeros ro_lle */ | |||||
inp->inp_vflag = 0; | inp->inp_vflag = 0; | ||||
inp->inp_flags2 |= INP_FREED; | inp->inp_flags2 |= INP_FREED; | ||||
crfree(inp->inp_cred); | crfree(inp->inp_cred); | ||||
#ifdef MAC | #ifdef MAC | ||||
mac_inpcb_destroy(inp); | mac_inpcb_destroy(inp); | ||||
#endif | #endif | ||||
if (!in_pcbrele_wlocked(inp)) | if (!in_pcbrele_wlocked(inp)) | ||||
▲ Show 20 Lines • Show All 921 Lines • ▼ Show 20 Lines | |||||
* about service problems. For now, invalidate cached | * about service problems. For now, invalidate cached | ||||
* routing information. If the route was created dynamically | * routing information. If the route was created dynamically | ||||
* (by a redirect), time to try a default gateway again. | * (by a redirect), time to try a default gateway again. | ||||
*/ | */ | ||||
void | void | ||||
in_losing(struct inpcb *inp) | in_losing(struct inpcb *inp) | ||||
{ | { | ||||
RO_RTFREE(&inp->inp_route); | RO_INVALIDATE_CACHE(&inp->inp_route); | ||||
if (inp->inp_route.ro_lle) | |||||
LLE_FREE(inp->inp_route.ro_lle); /* zeros ro_lle */ | |||||
return; | return; | ||||
} | } | ||||
/* | /* | ||||
* A set label operation has occurred at the socket layer, propagate the | * A set label operation has occurred at the socket layer, propagate the | ||||
* label change into the in_pcb for the socket. | * label change into the in_pcb for the socket. | ||||
*/ | */ | ||||
void | void | ||||
▲ Show 20 Lines • Show All 746 Lines • Show Last 20 Lines |