Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 1996 12:17:26 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
To:        "Kurt J. Lidl" <lidl@va.pubnix.com>
Cc:        freebsd-arch@freebsd.org, tech-net@netbsd.org, freebsd-bugs@freebsd.org, netbsd-bugs@netbsd.org
Subject:   Re: proposed kernel change for IP_HDRINCL 
Message-ID:  <96Oct20.121736pdt.177480@crevenia.parc.xerox.com>
In-Reply-To: Your message of "Fri, 18 Oct 96 13:22:30 PDT." <QAA01789.199610182022@arrow.va.pubnix.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <QAA01789.199610182022@arrow.va.pubnix.com> 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 <netinet/ip.h>
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.

Do you have any desire to do anything about raw_input as well?  Various
fields are messed with on the way in, too.

  Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96Oct20.121736pdt.177480>