Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_syncache.c
Show First 20 Lines • Show All 659 Lines • ▼ Show 20 Lines | syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m) | ||||
so = sonewconn(lso, 0); | so = sonewconn(lso, 0); | ||||
if (so == NULL) { | if (so == NULL) { | ||||
/* | /* | ||||
* Drop the connection; we will either send a RST or | * Drop the connection; we will either send a RST or | ||||
* have the peer retransmit its SYN again after its | * have the peer retransmit its SYN again after its | ||||
* RTO and try again. | * RTO and try again. | ||||
*/ | */ | ||||
TCPSTAT_INC(tcps_listendrop); | TCPSTAT_INC(tcps_listendrop); | ||||
if ((s = tcp_log_addrs(&sc->sc_inc, NULL, NULL, NULL))) { | if ((s = tcp_log_newconn(&sc->sc_inc, NULL, NULL, NULL))) { | ||||
log(LOG_DEBUG, "%s; %s: Socket create failed " | log(LOG_DEBUG, "%s; %s: Socket create failed " | ||||
"due to limits or memory shortage\n", | "due to limits or memory shortage\n", | ||||
s, __func__); | s, __func__); | ||||
free(s, M_TCPLOG); | free(s, M_TCPLOG); | ||||
} | } | ||||
goto abort2; | goto abort2; | ||||
} | } | ||||
#ifdef MAC | #ifdef MAC | ||||
▲ Show 20 Lines • Show All 1,581 Lines • Show Last 20 Lines |