Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet remove superfluous test (snd_una is always > iss...



details:   https://anonhg.NetBSD.org/src/rev/f1e5ea6d15b7
branches:  trunk
changeset: 485780:f1e5ea6d15b7
user:      matt <matt%NetBSD.org@localhost>
date:      Fri May 05 15:05:29 2000 +0000

description:
remove superfluous test (snd_una is always > iss since th_ack must > iss
(first test at start of case) and th_ack is assigned to snd_una).

diffstat:

 sys/netinet/tcp_input.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e1214925f122 -r f1e5ea6d15b7 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Fri May 05 14:51:46 2000 +0000
+++ b/sys/netinet/tcp_input.c   Fri May 05 15:05:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.107 2000/05/05 14:51:46 matt Exp $     */
+/*     $NetBSD: tcp_input.c,v 1.108 2000/05/05 15:05:29 matt Exp $     */
 
 /*
 %%% portions-copyright-nrl-95
@@ -1371,7 +1371,7 @@
                            tp->t_peermss);
 
                tcp_rmx_rtt(tp);
-               if (tiflags & TH_ACK && SEQ_GT(tp->snd_una, tp->iss)) {
+               if (tiflags & TH_ACK) {
                        tcpstat.tcps_connects++;
                        soisconnected(so);
                        tcp_established(tp);



Home | Main Index | Thread Index | Old Index