On Monday 2008-08-18 12:51, Patrick McHardy wrote: >netfilter: Move linux/in.h and linux/in6.h inclusions outside of #ifdef __KERNEL__ > >netfilter.h can't be used in userspace without including linux/in.h >and linux/in6.h first. netfilter.h includes its own linux/in.h and >linux/in6.h include statements, these are stripped by make >headers-install because they are inside #ifdef __KERNEL__ however. >Move them out to fix this. Humm - no, I do not think this is right. $ cat test2.c #include <netinet/in.h> /* simulate netfilter.h as proposed */ #include <linux/in.h> struct nf_inet_addr { struct in_addr inet4; }; /* end simul */ int main(void) { } yields: In file included from test2.c:2: /usr/include/linux/in.h:26: error: redeclaration of enumerator ‘IPPROTO_IP’ /usr/include/netinet/in.h:34: error: previous definition of ‘IPPROTO_IP’ was /here [...many more...] -- 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