In the SYN_SENT case, Initialize the snd_wnd before the call to tcp_mss().
The TCP hostcache logic in tcp_mss() depends on the snd_wnd being initialized.
This commit is contained in:
parent
cd88c37218
commit
4a32dc299f
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user