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:
Mohan Srinivasan 2007-02-28 20:48:00 +00:00
parent cd88c37218
commit 4a32dc299f
2 changed files with 4 additions and 6 deletions

View File

@ -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) {

View File

@ -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) {