Bill Fenner 610a2e9ca5 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
1997-10-07 21:10:06 +00:00
..
1997-05-25 15:50:46 +00:00
1997-08-02 14:33:27 +00:00
1997-05-09 07:48:14 +00:00
1997-09-16 11:44:05 +00:00
1997-09-16 18:36:06 +00:00
1997-08-02 14:33:27 +00:00
1997-08-02 14:33:27 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-09-16 11:44:05 +00:00
1997-09-21 22:02:25 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-08-02 14:33:27 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-05-25 15:50:46 +00:00
1997-09-16 18:36:06 +00:00
1997-09-16 18:36:06 +00:00
1997-09-16 18:36:06 +00:00
1997-09-16 18:36:06 +00:00