From owner-freebsd-hackers Wed Oct 1 15:39:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA14048 for hackers-outgoing; Wed, 1 Oct 1997 15:39:58 -0700 (PDT) Received: from gatekeeper.tsc.tdk.com (root@gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA14042 for ; Wed, 1 Oct 1997 15:39:55 -0700 (PDT) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.4/8.8.4) with ESMTP id PAA05607; Wed, 1 Oct 1997 15:39:26 -0700 (PDT) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id PAA20624; Wed, 1 Oct 1997 15:39:26 -0700 (PDT) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id PAA16119; Wed, 1 Oct 1997 15:39:24 -0700 (PDT) From: Don Lewis Message-Id: <199710012239.PAA16119@salsa.gv.tsc.tdk.com> Date: Wed, 1 Oct 1997 15:39:24 -0700 In-Reply-To: Jim Shankland "Re: FreeBSD TCP stack and RST processing [subj changed]" (Oct 1, 9:08am) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: Jim Shankland , richard@a42.deep-thought.org Subject: Re: FreeBSD TCP stack and RST processing [subj changed] Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Oct 1, 9:08am, Jim Shankland wrote: } Subject: Re: FreeBSD TCP stack and RST processing [subj changed] } I took a look at the code in 2.2.2-RELEASE, and it sure looks as though } it should not exhibit the behavior you described: if a RST packet } arrives on a connection in the SYN_RECEIVED state, the tcb is closed -- } there should be no retries. Nope, it looks broken too. case TCPS_SYN_RECEIVED: case TCPS_SYN_SENT: [ deleted ] if (tiflags & TH_RST) { if (tiflags & TH_ACK) tp = tcp_drop(tp, ECONNREFUSED); goto drop; } If a RST arrives without TH_ACK set, the packet is just dropped. --- Truck