From owner-freebsd-net Thu Nov 29 8: 8:34 2001 Delivered-To: freebsd-net@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 676E737B41E for ; Thu, 29 Nov 2001 08:08:30 -0800 (PST) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id fATG5YI31566; Thu, 29 Nov 2001 10:05:34 -0600 (CST) (envelope-from jlemon) Date: Thu, 29 Nov 2001 10:05:34 -0600 From: Jonathan Lemon To: =?iso-8859-1?Q?=BCB=BEJ=C2=D7?= Cc: Jonathan Lemon , freebsd-net@freebsd.org Subject: Re: Does 4.4 FreeBSD kernel supports TCP simultaneous open? Message-ID: <20011129100534.Q75389@prism.flugsvamp.com> References: <200111290637.fAT6bd213755@prism.flugsvamp.com> <001701c178a3$e43670e0$a22314ac@RTCN3848> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0pre2i In-Reply-To: <001701c178a3$e43670e0$a22314ac@RTCN3848> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Nov 29, 2001 at 03:03:04PM +0800, ¼B¾JÂ× wrote: > Thanks...I know where my problem is now...It's indeed a duplicate SYN. > > By the way, the tcp_input function is so long and large and there are > several goto statements which make reading the code even more difficult. Is > this intened to be like this? Even with Steven's TCP/IP Vol.2, it took me > three whole days to draw a Visio flow chart of this function. Has anybody > ever considered of reorganizing this module? I don't believe so; the code was originally designned to avoid function calls, and is essentially a couple of large switch statements. The flow pretty much mirrors the original RFC, and shouldn't be too hard to follow. I'd be leery of rewriting the code just for the sake of rewriting; chances would be pretty good that you'd introduce a subtle bug in one way or the other. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message