summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2003-02-19 21:33:46 +0000
committerjlemon <jlemon@FreeBSD.org>2003-02-19 21:33:46 +0000
commit3edfb3aaedd9bbd6d52953683c64c0a80cb81a43 (patch)
treedce6d656ab9b163ebf72b85ea7cd7453c10665d4 /sys/netinet
parent8b16df5c375c62f55a0bcea508d27d701a505e02 (diff)
downloadFreeBSD-src-3edfb3aaedd9bbd6d52953683c64c0a80cb81a43.zip
FreeBSD-src-3edfb3aaedd9bbd6d52953683c64c0a80cb81a43.tar.gz
Correct comments.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_input.c11
-rw-r--r--sys/netinet/tcp_reass.c11
2 files changed, 8 insertions, 14 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;
}
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 748d145..ad20203 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.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;
}
OpenPOWER on IntegriCloud