Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2012 01:41:39 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Gleb Smirnoff <glebius@freebsd.org>
Cc:        net@freebsd.org
Subject:   Re: [CFT/Review] net byte order for AF_INET
Message-ID:  <CAJ-VmomjWHcOks4TUE=U2ZHWBq1iapEO_wYKh81L5Rr8C-cyNg@mail.gmail.com>
In-Reply-To: <20121009154128.GU34622@FreeBSD.org>
References:  <20121009154128.GU34622@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Can you please test on i386? :)



Adrian


On 9 October 2012 08:41, Gleb Smirnoff <glebius@freebsd.org> wrote:
>   Hello,
>
>   this is a patch that switches entire IPv4 stack to network
> byte order. That means, that at any layer any module should
> expect IP header in network byte order. Any host byte order
> values can be stored in local variables only and are never stored
> into a packet itself.
>
>   The new code brings clarity, since a developer doesn't need to
> know which byte order should he/she switch a packet to when
> passing it to a particular function in stack. Also, any new
> function introduced should expect net byte order for a packet
> supplied.
>
>   The patch has been tested by me on amd64 and ray@ on mips.
> TCP, UDP, ICMP, fragment reassembly and basic packet filtering
> works okay.
>
> More testing is desired, especially on boxes using some extensions
> as packet filters with policy routing, running gre(4), ipsec(4),
> divert(4), gif(4), multicast routing, stf(4), ng_ipfw(4), SCTP, etc.
>
> Code reviewing also appreciated.
>
> --
> Totus tuus, Glebius.
>
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomjWHcOks4TUE=U2ZHWBq1iapEO_wYKh81L5Rr8C-cyNg>