freebsd-dev/sys/netinet
John Polstra 66e39adc7c Fix a bug (apparently very old) that can cause a TCP connection to
be dropped when it has an unusual traffic pattern.  For full details
as well as a test case that demonstrates the failure, see the
referenced PR.

Under certain circumstances involving the persist state, it is
possible for the receive side's tp->rcv_nxt to advance beyond its
tp->rcv_adv.  This causes (tp->rcv_adv - tp->rcv_nxt) to become
negative.  However, in the code affected by this fix, that difference
was interpreted as an unsigned number by max().  Since it was
negative, it was taken as a huge unsigned number.  The effect was
to cause the receiver to believe that its receive window had negative
size, thereby rejecting all received segments including ACKs.  As
the test case shows, this led to fruitless retransmissions and
eventually to a dropped connection.  Even connections using the
loopback interface could be dropped.  The fix substitutes the signed
imax() for the unsigned max() function.

PR:		closes kern/3998
Reviewed by:	davidg, fenner, wollman
1997-07-01 05:42:16 +00:00
..
libalias
fil.c Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
icmp_var.h
if_atm.c
if_atm.h
if_ether.c
if_ether.h
if_fddi.h
igmp_var.h
igmp.c
igmp.h
in_cksum.c
in_hostcache.c Add for public examination the beginnings of the per-host cache support 1997-06-18 01:24:28 +00:00
in_hostcache.h Add for public examination the beginnings of the per-host cache support 1997-06-18 01:24:28 +00:00
in_pcb.c
in_pcb.h
in_proto.c
in_rmx.c
in_systm.h
in_var.h
in.c
in.h
ip_compat.h Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_divert.c Submitted by: Whistle Communications (archie Cobbs) 1997-06-02 05:02:37 +00:00
ip_fil.c Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_fil.h Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_frag.c Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_frag.h Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_ftp_pxy.c Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_fw.c make it compile with -Wall 1997-06-04 22:09:15 +00:00
ip_fw.h Submitted by: Whistle Communications (archie Cobbs) 1997-06-02 05:02:37 +00:00
ip_icmp.c
ip_icmp.h
ip_input.c Submitted by: Whistle Communications (archie Cobbs) 1997-06-02 05:02:37 +00:00
ip_mroute.c
ip_mroute.h
ip_nat.c Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_nat.h Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_output.c Submitted by: Whistle Communications (archie Cobbs) 1997-06-02 05:02:37 +00:00
ip_proxy.c Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_proxy.h Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_state.c Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_state.h Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
ip_var.h
ip.h
ipl.h Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
mln_ipl.c Import version 3.2alpha7 1997-05-25 15:50:46 +00:00
raw_ip.c
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_input.c Fix a bug (apparently very old) that can cause a TCP connection to 1997-07-01 05:42:16 +00:00
tcp_output.c
tcp_reass.c Fix a bug (apparently very old) that can cause a TCP connection to 1997-07-01 05:42:16 +00:00
tcp_seq.h
tcp_subr.c
tcp_timer.c
tcp_timer.h
tcp_timewait.c
tcp_usrreq.c
tcp_var.h
tcp.h
tcpip.h
udp_usrreq.c
udp_var.h
udp.h