Re: [netfilter-core] [ANNOUNCE] Release of iptables 1.4.1-rc2

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

 



Gabor Z. Papp wrote:
* Patrick McHardy <kaber@xxxxxxxxx>:

| Thanks for the report. Does this patch fix it?

Not really.

  CC       libxt_connlimit.oo
In file included from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../include/linux/netfilter_ipv4/ip_tables.h:19,
                 from ../include/libiptc/libiptc.h:7,
                 from ../include/iptables.h:5,
                 from libxt_connlimit.c:8:
../include/linux/netfilter.h:42: error: expected specifier-qualifier-list before '__be32'
make[2]: *** [libxt_connlimit.oo] Error 1
make[2]: Leaving directory `/home/gzp/src/iptables-1.4.1-rc2/extensions'
make[1]: *** [all-recursive] Error 1

Your types.h doesn't seem to include the endian annotated
types at all. Does this patch work?

diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 4196a51..b64a513 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -38,8 +38,8 @@ enum nf_inet_hooks {
 
 union nf_inet_addr {
 	__u32		all[4];
-	__be32		ip;
-	__be32		ip6[4];
+	__u32		ip;
+	__u32		ip6[4];
 	struct in_addr	in;
 	struct in6_addr	in6;
 };

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

  Powered by Linux