[CFT/Review] net byte order for AF_INET
Gleb Smirnoff
glebius at FreeBSD.org
Wed Oct 10 19:58:45 UTC 2012
On Tue, Oct 09, 2012 at 07:41:28PM +0400, Gleb Smirnoff wrote:
T> this is a patch that switches entire IPv4 stack to network
T> byte order. That means, that at any layer any module should
T> expect IP header in network byte order. Any host byte order
T> values can be stored in local variables only and are never stored
T> into a packet itself.
Update:
- fresh patch against r241405, should apply to r241405
- fixed raw sockets` as Luigi and Max Dounin noticed, also fixed
another issue with raw sockets, now work fine - tested with ospfd
- fixed gre(4)
- took into account Luigi's comments about using host byte order
in any ==, <, > comparisons.
Decided not to touch ip_reass().
--
Totus tuus, Glebius.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IPv4.net-byte-order.diff
Type: text/x-diff
Size: 37810 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20121010/0414ed63/attachment-0001.diff>
More information about the freebsd-net
mailing list