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 07:24, Peter Korsgaard wrote:

>ea2a02f7 (libxt_TCPMSS: use guided option parser) added an netinet/ip6.h
>include, which is not available on systems without ipv6.

I can understand that some implementations omit symbols that are a 
runtime dependency (such as in6addr_any) from the library, but structs 
are for free, so what broken libc does forget those?

>+#define IPHDRSIZE	20	/* sizeof(struct iphdr) */
>+#define IP6HDRSIZE	40	/* sizeof(struct ip6_hdr) */

That would put a hard assumption on the implementation, which does not 
seem the right thing to do.
--
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