From owner-freebsd-hackers Wed Oct 1 18:06:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA20642 for hackers-outgoing; Wed, 1 Oct 1997 18:06:59 -0700 (PDT) Received: from a42.deep-thought.org (A42.deep-thought.org [203.4.184.227]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA20635; Wed, 1 Oct 1997 18:06:45 -0700 (PDT) Received: from a42.deep-thought.org ([127.0.0.1]) by a42.deep-thought.org with esmtp id m0xGZlz-0024w4C (Debian Smail-3.2 1996-Jul-4 #2); Thu, 2 Oct 1997 11:09:47 +1000 (EST) Message-Id: X-Mailer: exmh version 1.6.9 8/22/96 To: Paul Traina cc: "Jordan K. Hubbard" , dg@root.com, Don Lewis , hackers@FreeBSD.ORG, bugs@FreeBSD.ORG Subject: Re: FreeBSD TCP stack and RST processing [subj changed] In-reply-to: Your message of "Wed, 01 Oct 1997 17:54:24 MST." <199710020054.RAA04241@base.juniper.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 02 Oct 1997 11:09:47 +1000 From: Richard Jones Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Paul Traina wrote: > I put it in there for a reason, Steven's III showed a case where you could > pummel the box with a barage of, I believe, syn ack's and basicly melt things. > Sorry my memory is so foggy on the issue now. I'll go back and try to > remember. Hmm..but if you barrage the system with SYN ACK's when the system is in a listen state, you shouldn't jump into SYN_RECEIVED should you? The code which does the if (TH_RST) stuff is prolly ok...its the addition of the case SYN_RECEIVED up the top that does the trick. Its ok to look for an ACK when in SYN_SENT on RST's coz thats what is expected, and if you get other than expected and drop then its no big deal unless you can force a remote freebsd system to send out (pure) SYN's to non-connected ports, unlikely. I only have the snippets posted to the list available, but based on them I'd say remove the case SYN_RECEIVED that was added. You might get away with getting rid of the ACK flag check without losing anything, but any side effects should be thought through. Anyways I'm running late for appointment which is why this may sound a little incoherent, gotta run. Richard Jones.