summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_reass.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/tcp_reass.c')
-rw-r--r--sys/netinet/tcp_reass.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 01f2316..2190a7b 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -1155,6 +1155,8 @@ after_listen:
tp->ts_recent = to.to_tsval;
tp->ts_recent_age = ticks;
}
+ /* Initial send window, already scaled. */
+ tp->snd_wnd = th->th_win;
if (to.to_flags & TOF_MSS)
tcp_mss(tp, to.to_mss);
if (tp->sack_enable) {
@@ -1484,9 +1486,6 @@ after_listen:
if ((thflags & TH_SYN) == 0)
goto drop;
- /* Initial send window, already scaled. */
- tp->snd_wnd = th->th_win;
-
tp->irs = th->th_seq;
tcp_rcvseqinit(tp);
if (thflags & TH_ACK) {
OpenPOWER on IntegriCloud