From owner-freebsd-hackers Wed May 10 13:50:56 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA03902 for hackers-outgoing; Wed, 10 May 1995 13:50:56 -0700 Received: from park.uvsc.edu (park.uvsc.edu [192.80.27.50]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id NAA03892 for ; Wed, 10 May 1995 13:50:52 -0700 Received: by park.uvsc.edu id AA13444 (5.65c/IDA-1.4.4 for freebsd-hackers@freebsd.org); Wed, 10 May 1995 14:49:53 -0600 Message-Id: <199505102049.AA13444@park.uvsc.edu> From: Matt Day Date: Wed, 10 May 1995 14:49:51 -0600 X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: freebsd-hackers@FreeBSD.org Subject: Re: Is this a bug in tcp_input.c ? (fwd) Sender: hackers-owner@FreeBSD.org Precedence: bulk Perhaps this is worth investigating. Matt Day > Article 14902 of comp.protocols.tcp-ip: > Path: park.uvsc.edu!news.provo.novell.com!nntp.et.byu.edu!gatech!howland.reston.ans.net!newsserver.jvnc.net!nntpserver.pppl.gov!cnn.Princeton.EDU!flagstaff.princeton.edu!dawagner > From: dawagner@flagstaff.princeton.edu (David A. Wagner) > Newsgroups: comp.protocols.tcp-ip > Subject: Is this a bug in tcp_input.c ? > Date: 9 May 1995 04:44:51 GMT > Organization: Princeton University > Lines: 20 > Message-ID: <3oms03$j1v@cnn.Princeton.EDU> > NNTP-Posting-Host: flagstaff.princeton.edu > > In tcp_input.c, look at this section: > > /* > * If a new connection request is received > * while in TIME_WAIT, drop the old connection > * and start over if the sequence numbers > * are above the previous ones. > */ > if (tiflags & TH_SYN && > tp->t_state == TCPS_TIME_WAIT && > SEQ_GT(ti->ti_seq, tp->rcv_nxt)) { > iss = tp->rcv_nxt + TCP_ISSINCR; > > Shouldn't that be a tp->snd_nxt instead of a tp->rcv_nxt ? > > [The variable iss is used as the initial sequence number > for the new connnection, and tcp_iss is ignored.] > > ------------------------------------------------------------------------------- > David Wagner dawagner@princeton.edu