From owner-freebsd-current Thu Jan 20 17:39:11 2000 Delivered-To: freebsd-current@freebsd.org Received: from gatekeeper.tsc.tdk.com (gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (Postfix) with ESMTP id C2AB315333 for ; Thu, 20 Jan 2000 17:39:01 -0800 (PST) (envelope-from gdonl@tsc.tdk.com) Received: from imap.gv.tsc.tdk.com (imap.gv.tsc.tdk.com [192.168.241.198]) by gatekeeper.tsc.tdk.com (8.8.8/8.8.8) with ESMTP id RAA28995; Thu, 20 Jan 2000 17:38:54 -0800 (PST) (envelope-from gdonl@tsc.tdk.com) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by imap.gv.tsc.tdk.com (8.9.3/8.9.3) with ESMTP id RAA44600; Thu, 20 Jan 2000 17:38:53 -0800 (PST) (envelope-from Don.Lewis@tsc.tdk.com) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id RAA11083; Thu, 20 Jan 2000 17:38:52 -0800 (PST) Message-Id: <200001210138.RAA11083@salsa.gv.tsc.tdk.com> From: gdonl@tsc.tdk.com (Don Lewis) Date: Thu, 20 Jan 2000 17:38:52 -0800 In-Reply-To: Alfred Perlstein "half-fix for stream.c" (Jan 20, 5:41pm) X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: Alfred Perlstein , current@FreeBSD.ORG Subject: Re: half-fix for stream.c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Jan 20, 5:41pm, Alfred Perlstein wrote: } Subject: half-fix for stream.c } you can find it at: } } http://www.freebsd.org/~alfred/tcp_fix.diff Don't you want to defer the checksum even further (after the bogus packets have been dropped)? It doesn't look like the change you made will save any unnecessary work. Also, it looks like you can save a few CPU cycles by only searching for wildcard sockets if the SYN flag is set, so only set the 6th argument to in_pcblookup_hash() if (thflags & TH_SYN) is true. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message