Skip to contentSkip to conversation

iptables 1.4.2: Fix compile error

PATCH Applied Thomas Jarosch 2 participants 2 messages Oct 23, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iptables 1.4.2: Fix compile error

Hello Patrick,

attached is a small patch to fix compilation
of iptables 1.4.2 using gcc 4.3.2.

Cherrs,
Thomas

Fix compile error in libxt_iprange.c using gcc 4.3.2

In file included from libxt_iprange.c:9:
../include/linux/netfilter.h:43: error: field 'in' has incomplete type ../include/linux/netfilter.h:44: error: field 'in6' has incomplete type libxt_iprange.c: In function 'parse_iprange':
libxt_iprange.c:46: error: dereferencing pointer to incomplete type libxt_iprange.c:53: error: dereferencing pointer to incomplete type libxt_iprange.c: In function 'iprange_mt4_parse':
libxt_iprange.c:117: error: dereferencing pointer to incomplete type libxt_iprange.c:121: error: dereferencing pointer to incomplete type libxt_iprange.c:136: error: dereferencing pointer to incomplete type libxt_iprange.c:140: error: dereferencing pointer to incomplete type libxt_iprange.c: In function 'iprange_mt6_parse':
libxt_iprange.c:167: error: dereferencing pointer to incomplete type libxt_iprange.c:171: error: dereferencing pointer to incomplete type libxt_iprange.c:186: error: dereferencing pointer to incomplete type libxt_iprange.c:190: error: dereferencing pointer to incomplete type

extensions/libxt_iprange.c +1 -0
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_iprange.c iptables-1.4.2/extensions/libxt_iprange.c
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <getopt.h>
 
+#include <netinet/in.h>
 #include <xtables.h>
 #include <linux/netfilter.h>
 #include <linux/netfilter/xt_iprange.h>
#1 lore raw
Quoted 4 lines · Thomas Jarosch

Hello Patrick,

attached is a small patch to fix compilation
of iptables 1.4.2 using gcc 4.3.2.

Applied, thanks.