Re: [PATCH] libxt_TCPMSS.c: unbreak build without ipv6 after ea2a02f7

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

 



On Friday 2011-07-22 12:25, Peter Korsgaard wrote:

> >> +#define IPHDRSIZE	20	/* sizeof(struct iphdr) */
> >> +#define IP6HDRSIZE	40	/* sizeof(struct ip6_hdr) */
>
> Jan> That would put a hard assumption on the implementation, which does
> Jan> not seem the right thing to do.
>
>But those structs define the network format of ipv4 and ipv6 headers, so
>they are not likely to change.

I was pondering on a hypothetical implementation with CHAR_BIT=16.

How about 
http://dev.medozas.de/gitweb.cgi?p=iptables;a=commitdiff;h=4d8656ad9d0afd04820f125a85a7b673c7e74fe6
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux