diff options
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 748d145..ad20203 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -731,13 +731,10 @@ findpcb: tp->snd_up = tp->snd_una; tp->snd_max = tp->snd_nxt = tp->iss + 1; tp->last_ack_sent = tp->rcv_nxt; -/* - * XXX possible bug - it doesn't appear that tp->snd_wnd is unscaled - * until the _second_ ACK is received: - * rcv SYN (set wscale opts) --> send SYN/ACK, set snd_wnd = window. - * rcv ACK, calculate tiwin --> process SYN_RECEIVED, determine wscale, - * move to ESTAB, set snd_wnd to tiwin. - */ + /* + * RFC1323: The window in SYN & SYN/ACK + * segments is never scaled. + */ tp->snd_wnd = tiwin; /* unscaled */ goto after_listen; } |