From owner-freebsd-bugs Sun Oct 20 14:29:25 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA15665 for bugs-outgoing; Sun, 20 Oct 1996 14:29:25 -0700 (PDT) Received: from work.smurf.noris.de (root@work.smurf.noris.de [193.141.54.132]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA15656; Sun, 20 Oct 1996 14:29:19 -0700 (PDT) Received: by work.smurf.noris.de id <2654-225>; Sun, 20 Oct 1996 23:28:57 -0200 Subject: Re: proposed kernel change for IP_HDRINCL From: Matthias Urlichs To: fenner@parc.xerox.com (Bill Fenner) Date: Sun, 20 Oct 1996 23:28:53 +0200 (MET DST) Cc: lidl@va.pubnix.com, freebsd-arch@freebsd.org, tech-net@netbsd.org, freebsd-bugs@freebsd.org, netbsd-bugs@netbsd.org In-Reply-To: <96Oct20.121736pdt.177480@crevenia.parc.xerox.com> from "Bill Fenner" at Oct 20, 96 12:17:26 pm MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Message-Id: <96Oct20.232857-0200met_dst.2654-225+477@work.smurf.noris.de> Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, Bill Fenner wrote: > >In message you write: >>Currently, when using setsockopt() with the IP_HDRINCL flag, most >>fields of the IP header are passed into the kernel in network byte >>order, except for the ip_off and ip_len fields. > >I think that there should be a standard macro defined in >that says whether or not this change is in the kernel, so that people >don't have to send themselves a packet to see whether the kernel byte >swaps or not. > Right. >Do you have any desire to do anything about raw_input as well? Various >fields are messed with on the way in, too. > IMHO, a raw packet should be a _raw_ packet. That means that the kernel shouldn't fiddle with _anything_. FWIW, Linux does things the "really raw" way, too; thus, programs which rely on these things already have the required patches, these days. -- Airplanes are interesting toys but of no military value. -- Marechal Ferdinand Foch, Professor of Strategy, Ecole Superieure de Guerre -- Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de 90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE Click here. 42