Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_input.c
Show First 20 Lines • Show All 2,379 Lines • ▼ Show 20 Lines | #endif | ||||
case TCPS_SYN_RECEIVED: | case TCPS_SYN_RECEIVED: | ||||
TCPSTAT_INC(tcps_connects); | TCPSTAT_INC(tcps_connects); | ||||
soisconnected(so); | soisconnected(so); | ||||
/* Do window scaling? */ | /* Do window scaling? */ | ||||
if ((tp->t_flags & (TF_RCVD_SCALE|TF_REQ_SCALE)) == | if ((tp->t_flags & (TF_RCVD_SCALE|TF_REQ_SCALE)) == | ||||
(TF_RCVD_SCALE|TF_REQ_SCALE)) { | (TF_RCVD_SCALE|TF_REQ_SCALE)) { | ||||
tp->rcv_scale = tp->request_r_scale; | tp->rcv_scale = tp->request_r_scale; | ||||
tp->snd_wnd = tiwin; | |||||
} | } | ||||
tp->snd_wnd = tiwin; | |||||
/* | /* | ||||
* Make transitions: | * Make transitions: | ||||
* SYN-RECEIVED -> ESTABLISHED | * SYN-RECEIVED -> ESTABLISHED | ||||
* SYN-RECEIVED* -> FIN-WAIT-1 | * SYN-RECEIVED* -> FIN-WAIT-1 | ||||
*/ | */ | ||||
tp->t_starttime = ticks; | tp->t_starttime = ticks; | ||||
if (IS_FASTOPEN(tp->t_flags) && tp->t_tfo_pending) { | if (IS_FASTOPEN(tp->t_flags) && tp->t_tfo_pending) { | ||||
tcp_fastopen_decrement_counter(tp->t_tfo_pending); | tcp_fastopen_decrement_counter(tp->t_tfo_pending); | ||||
▲ Show 20 Lines • Show All 1,434 Lines • Show Last 20 Lines |