Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_syncache.c
Show First 20 Lines • Show All 937 Lines • ▼ Show 20 Lines | #ifdef INET | ||||
sin.sin_family = AF_INET; | sin.sin_family = AF_INET; | ||||
sin.sin_len = sizeof(sin); | sin.sin_len = sizeof(sin); | ||||
sin.sin_addr = sc->sc_inc.inc_faddr; | sin.sin_addr = sc->sc_inc.inc_faddr; | ||||
sin.sin_port = sc->sc_inc.inc_fport; | sin.sin_port = sc->sc_inc.inc_fport; | ||||
bzero((caddr_t)sin.sin_zero, sizeof(sin.sin_zero)); | bzero((caddr_t)sin.sin_zero, sizeof(sin.sin_zero)); | ||||
laddr = inp->inp_laddr; | laddr = inp->inp_laddr; | ||||
if (inp->inp_laddr.s_addr == INADDR_ANY) | if (inp->inp_laddr.s_addr == INADDR_ANY) | ||||
inp->inp_laddr = sc->sc_inc.inc_laddr; | inp->inp_laddr = sc->sc_inc.inc_laddr; | ||||
if ((error = in_pcbconnect_mbuf(inp, (struct sockaddr *)&sin, | if ((error = in_pcbconnect(inp, (struct sockaddr *)&sin, | ||||
thread0.td_ucred, m, false)) != 0) { | thread0.td_ucred, false)) != 0) { | ||||
inp->inp_laddr = laddr; | inp->inp_laddr = laddr; | ||||
if ((s = tcp_log_addrs(&sc->sc_inc, NULL, NULL, NULL))) { | if ((s = tcp_log_addrs(&sc->sc_inc, NULL, NULL, NULL))) { | ||||
log(LOG_DEBUG, "%s; %s: in_pcbconnect failed " | log(LOG_DEBUG, "%s; %s: in_pcbconnect failed " | ||||
"with error %i\n", | "with error %i\n", | ||||
s, __func__, error); | s, __func__, error); | ||||
free(s, M_TCPLOG); | free(s, M_TCPLOG); | ||||
} | } | ||||
INP_HASH_WUNLOCK(&V_tcbinfo); | INP_HASH_WUNLOCK(&V_tcbinfo); | ||||
▲ Show 20 Lines • Show All 1,634 Lines • Show Last 20 Lines |