Re: [PATCH 2/7] Introduce nf_inet_address

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

 



On Dec 15 2007 13:06, Jan Engelhardt wrote:
>Userspace iptables does not seem to properly cope with it, though:
>
>In file included from /ws/linux-2.6/include/linux/netfilter_ipv4.h:8,
>                 from 
>/ws/linux-2.6/include/linux/netfilter_ipv4/ip_tables.h:26,
>                 from include/libiptc/libiptc.h:6,
>                 from libiptc/libip4tc.c:29:
>/ws/linux-2.6/include/linux/netfilter.h:53: error: expected 
>specifier-qualifier-list before ‘__be32’
>make: *** [libiptc/libip4tc.o] Error 1

Fix for iptables:

===


Add __beXX types to libiptc.
Also add __be64/__le64 for completeness.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>

---
 include/libiptc/libip6tc.h |    8 ++++++++
 include/libiptc/libiptc.h  |    9 +++++++++
 include/xtables.h          |   12 ++++++++----
 3 files changed, 25 insertions(+), 4 deletions(-)

Index: iptables-modules/include/libiptc/libip6tc.h
===================================================================
--- iptables-modules.orig/include/libiptc/libip6tc.h
+++ iptables-modules/include/libiptc/libip6tc.h
@@ -2,6 +2,14 @@
 #define _LIBIP6TC_H
 /* Library which manipulates firewall rules. Version 0.2. */
 
+#ifndef __be32
+#	define __be64	u_int64_t
+#	define __le64	u_int64_t
+#	define __be32	u_int32_t
+#	define __le32	u_int32_t
+#	define __be16	u_int16_t
+#	define __le16	u_int16_t
+#endif
 #include <libiptc/ipt_kernel_headers.h>
 #include <linux/netfilter_ipv6/ip6_tables.h>
 
Index: iptables-modules/include/libiptc/libiptc.h
===================================================================
--- iptables-modules.orig/include/libiptc/libiptc.h
+++ iptables-modules/include/libiptc/libiptc.h
@@ -2,6 +2,15 @@
 #define _LIBIPTC_H
 /* Library which manipulates filtering rules. */
 
+#ifndef __be32
+#	define __be64	u_int64_t
+#	define __le64	u_int64_t
+#	define __be32	u_int32_t
+#	define __le32	u_int32_t
+#	define __be16	u_int16_t
+#	define __le16	u_int16_t
+#endif
+
 #include <libiptc/ipt_kernel_headers.h>
 #include <linux/netfilter_ipv4/ip_tables.h>
 
Index: iptables-modules/include/xtables.h
===================================================================
--- iptables-modules.orig/include/xtables.h
+++ iptables-modules/include/xtables.h
@@ -234,9 +234,13 @@ extern const char *program_name, *progra
   extern void init_extensions(void);
 #endif
 
-#define __be32	u_int32_t
-#define __le32	u_int32_t
-#define __be16	u_int16_t
-#define __le16	u_int16_t
+#ifndef __be32
+#	define __be64	u_int64_t
+#	define __le64	u_int64_t
+#	define __be32	u_int32_t
+#	define __le32	u_int32_t
+#	define __be16	u_int16_t
+#	define __le16	u_int16_t
+#endif
 
 #endif /* _XTABLES_H */
-
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