svn commit: r201057 - in user/luigi/ipfw3-head/sys/netinet: . ipfw

Bruce Simpson bms at incunabulum.net
Mon Dec 28 20:26:38 UTC 2009


On 27/12/2009 20:41, Julian Elischer wrote:
> Luigi Rizzo wrote:
>> Author: luigi
>> Date: Sun Dec 27 19:17:03 2009
>> New Revision: 201057
>> URL: http://svn.freebsd.org/changeset/base/201057
>>
>> Log:
>>   Historically, BSD keeps ip_len and ip_off in host format when doing
>>   layer 3 processing.  This often requires to translate the format
>>   back and forth.
>
> [...]
>
>>     Eventually, I would like these fields to remain in network format
>>   across the lifetime of a packet, but this may take a long time,
>>   so let's see if we can find ways to at least make the switch easier.
>
>
> I think I'd go for this sooner than later. It's always annoyed me.

+1.

It is a bit of a kicker for portability with other BSDs, and I wonder 
how much we actually gain with using host endian in IPv4, as opposed to 
tripping over it all the time.


More information about the svn-src-user mailing list