From owner-freebsd-net Tue Oct 10 18:37:11 2000 Delivered-To: freebsd-net@freebsd.org Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (Postfix) with ESMTP id AB79C37B670; Tue, 10 Oct 2000 18:37:09 -0700 (PDT) Received: (from smap@localhost) by whistle.com (8.10.0/8.10.0) id e9B1aaf16116; Tue, 10 Oct 2000 18:36:36 -0700 (PDT) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma016112; Tue, 10 Oct 2000 18:36:19 -0700 Received: (from archie@localhost) by bubba.whistle.com (8.11.0/8.11.0) id e9B1aJo40890; Tue, 10 Oct 2000 18:36:19 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200010110136.e9B1aJo40890@bubba.whistle.com> Subject: Re: ip_input.c patch In-Reply-To: <200010110053.CAA85156@info.iet.unipi.it> "from Luigi Rizzo at Oct 11, 2000 02:53:34 am" To: Luigi Rizzo Date: Tue, 10 Oct 2000 18:36:19 -0700 (PDT) Cc: bmilekic@FreeBSD.ORG, freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo writes: > > Does this patch look appropriate to you? > > wouldn't it be better to just avoid the problem in the first place > by removing the conversion to host format and fixing the rest > of the code to handle things in net format ? Sounds OK to me.. maybe some asm() guru can come up with some fast functions for adding and subtracting byte-swapped values. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message