Re: [PATCH xtables-addons 3/3] xt_geoip: fix in6_addr little-endian byte-swapping.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2019-11-30, at 17:02:19 +0000, Jeremy Sowden wrote:
> libxt_geoip attempts to byte-swap IPv6 addresses on little-endian
> systems but it doesn't get it quite right.  Rather than doing ntohl on
> each 32-bit segment, it does ntohs on each 16-bit segment.
>
> This means that:
>
>   1234::cdef
>
> becomes:
>
>   2143::dcfe
>
> instead of:
>
>   4321::fedc

I'm an idiot.  This commit message is wrong.  Will fix and resend.

J.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux