Re: IP_HDRINCL byte ordering

Greg Troxel <[email protected]> Mon, 23 Jun 2025 12:41:41 -0400
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
I should add that while this is shed color perhaps, I don't like
IP_HDRINCL_RAW as a name.  The difference is just byte order of two
fields.

Thus, perhaps IP_HDRINCL_NBO which doesn't make sense, but will lead to
looking up and seeing network byte order.

As to Michael's comment, I interpret the patch as keeping the historical
behavior and adding a new setsockopt, which while it will have a
different name than used on other systems, should enable modifying their
code to not have to htons differently, after some number of years.

Given that, I don't see why NetBSD base code should change.



(Regardless of what we do or don't change, improving the docs seems good.)