Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_syncache.c
Show First 20 Lines • Show All 1,034 Lines • ▼ Show 20 Lines | #endif | ||||
tp->t_keepintvl = sototcpcb(lso)->t_keepintvl; | tp->t_keepintvl = sototcpcb(lso)->t_keepintvl; | ||||
tp->t_keepcnt = sototcpcb(lso)->t_keepcnt; | tp->t_keepcnt = sototcpcb(lso)->t_keepcnt; | ||||
tcp_timer_activate(tp, TT_KEEP, TP_KEEPINIT(tp)); | tcp_timer_activate(tp, TT_KEEP, TP_KEEPINIT(tp)); | ||||
TCPSTAT_INC(tcps_accepts); | TCPSTAT_INC(tcps_accepts); | ||||
TCP_PROBE6(state__change, NULL, tp, NULL, tp, NULL, TCPS_LISTEN); | TCP_PROBE6(state__change, NULL, tp, NULL, tp, NULL, TCPS_LISTEN); | ||||
if (!solisten_enqueue(so, SS_ISCONNECTED)) | if (!solisten_enqueue(so, SS_ISCONNECTED)) | ||||
tp->t_flags |= TF_INCQUEUE; | tp->t_flags |= TF_SONOTCONN; | ||||
return (so); | return (so); | ||||
allocfail: | allocfail: | ||||
/* | /* | ||||
* Drop the connection; we will either send a RST or have the peer | * Drop the connection; we will either send a RST or have the peer | ||||
* retransmit its SYN again after its RTO and try again. | * retransmit its SYN again after its RTO and try again. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,532 Lines • Show Last 20 Lines |