Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_syncache.c
Show First 20 Lines • Show All 689 Lines • ▼ Show 20 Lines | #endif | ||||
* just created by an accept() call. | * just created by an accept() call. | ||||
*/ | */ | ||||
INP_HASH_WLOCK(&V_tcbinfo); | INP_HASH_WLOCK(&V_tcbinfo); | ||||
/* Insert new socket into PCB hash list. */ | /* Insert new socket into PCB hash list. */ | ||||
inp->inp_inc.inc_flags = sc->sc_inc.inc_flags; | inp->inp_inc.inc_flags = sc->sc_inc.inc_flags; | ||||
#ifdef INET6 | #ifdef INET6 | ||||
if (sc->sc_inc.inc_flags & INC_ISIPV6) { | if (sc->sc_inc.inc_flags & INC_ISIPV6) { | ||||
inp->inp_vflag &= ~INP_IPV4; | |||||
inp->inp_vflag |= INP_IPV6; | |||||
inp->in6p_laddr = sc->sc_inc.inc6_laddr; | inp->in6p_laddr = sc->sc_inc.inc6_laddr; | ||||
} else { | } else { | ||||
inp->inp_vflag &= ~INP_IPV6; | inp->inp_vflag &= ~INP_IPV6; | ||||
inp->inp_vflag |= INP_IPV4; | inp->inp_vflag |= INP_IPV4; | ||||
#endif | #endif | ||||
inp->inp_laddr = sc->sc_inc.inc_laddr; | inp->inp_laddr = sc->sc_inc.inc_laddr; | ||||
#ifdef INET6 | #ifdef INET6 | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,532 Lines • Show Last 20 Lines |