From owner-cvs-sys Tue Oct 7 14:11:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA23145 for cvs-sys-outgoing; Tue, 7 Oct 1997 14:11:10 -0700 (PDT) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA23098; Tue, 7 Oct 1997 14:10:07 -0700 (PDT) (envelope-from fenner@FreeBSD.org) From: Bill Fenner Received: (from fenner@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id OAA00816; Tue, 7 Oct 1997 14:10:07 -0700 (PDT) Date: Tue, 7 Oct 1997 14:10:07 -0700 (PDT) Message-Id: <199710072110.OAA00816@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/netinet tcp_output.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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