Date: Tue, 7 Oct 1997 14:10:07 -0700 (PDT) From: Bill Fenner <fenner@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/netinet tcp_output.c Message-ID: <199710072110.OAA00816@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
fenner 1997/10/07 14:10:06 PDT
Modified files:
sys/netinet tcp_output.c
Log:
Don't allow the window to be increased beyond what is possible to
represent in the TCP header. The old code did effectively:
win = min(win, MAX_ALLOWED);
win = max(win, what_i_think_i_advertised_last_time);
so if what_i_think_i_advertised_last_time is bigger than can be
represented in the header (e.g. large buffers and no window scaling)
then we stuff a too-big number into a short. This fix reverses the
order of the comparisons.
PR: kern/4712
Revision Changes Path
1.27 +3 -3 src/sys/netinet/tcp_output.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710072110.OAA00816>
