Skip to contentSkip to conversation

Iptables snapshot compile failure with 2.6.12 headers

DISCUSSION Andrew Hall 3 participants 5 messages Jun 27, 2005 – Jun 28, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Presently it seems that the Iptables shapshot will fail to compile when using 2.6.11+ headers.

A little while ago I remember someone saying that they needed to comment out a couple of lines in a particular kernel header file to get iptables to compile properly, does anyone have the file and the two lines that needed commenting out?

Thanks,

Andrew.

#1 lore raw

Re: Iptables snapshot compile failure with 2.6.12 headers: - please disregard

Quoted 8 lines

Presently it seems that the Iptables shapshot will fail to compile when using 2.6.11+ headers.

A little while ago I remember someone saying that they needed to comment out a couple of lines in a particular kernel header file to get iptables to compile properly, does anyone have the file and the two lines that needed commenting out?

Thanks,

Andrew.

It's the ipsec patches that cause the failure, and Tom's patch fixes this so there's no longer a problem.

Thanks,

#2 lore raw

Re: Iptables snapshot compile failure with 2.6.12 headers: - please disregard

Quoted 2 lines · Andrew Hall

It's the ipsec patches that cause the failure, and Tom's patch fixes this so there's no longer a problem.

sorry, which particular "tom's patch" are your referring to?

was that already included (to mainline kernel, p-o-m, iptables)? Is ther anything we still need to do about this issue?

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie
#3 lore raw

Re: Iptables snapshot compile failure with 2.6.12 headers: - please disregard

Here's the missing headers patch that was supplied by Tom Eastep to allow Patrick's IPSec code changes to compile cleanly with the iptables:

include/linux/netfilter_ipv4.h 2005-03-03 10:55:13.496133352 -0800 renamed from include/linux/netfilter_ipv4.h 2005-03-03 10:55:24.895484995 -0800 +0 -0
diff -Naur linux-2.6.11.orig/include/linux/netfilter_ipv4.h linux-2.6.11/include/linux/netfilter_ipv4.h
@@ -7,8 +7,10 @@
 

#include <linux/config.h>
#include <linux/netfilter.h>
+#ifdef __KERNEL__
#include <linux/netdevice.h>
#include <net/protocol.h>
+#endif

/* IP Cache bits. */
/* Src IP address. */

include/net/ip.h 2005-03-03 10:54:25.250342049 -0800 renamed from include/net/ip.h 2005-03-03 10:54:34.418212127 -0800 +0 -0
diff -Naur linux-2.6.11.orig/include/net/ip.h linux-2.6.11/include/net/ip.h
@@ -30,8 +30,10 @@

#include <linux/netdevice.h>
#include <linux/inetdevice.h>
#include <linux/in_route.h>
+#ifdef __KERNEL__
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
+#endif
#include <net/route.h>
#include <net/arp.h>
#include <net/snmp.h>

#4 lore raw

Re: Iptables snapshot compile failure with 2.6.12 headers: - please disregard

In reply to Harald Welte
Quoted 10 lines · Harald Welte
Quoted 2 lines · Andrew Hall

It's the ipsec patches that cause the failure, and Tom's patch fixes this so there's no longer a problem.

sorry, which particular "tom's patch" are your referring to?

was that already included (to mainline kernel, p-o-m, iptables)? Is ther anything we still need to do about this issue?

I assume that he is referring to the attached hack.

-Tom
--
Tom Eastep \ Nothing is foolproof to a sufficiently talented fool
Shoreline, \ http://shorewall.net
Washington USA \ [email protected]
PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key

include/linux/netfilter_ipv4.h +2 -0
diff -Naur linux-2.6.11.orig/include/linux/netfilter_ipv4.h linux-2.6.11/include/linux/netfilter_ipv4.h
@@ -7,8 +7,10 @@
 
 #include <linux/config.h>
 #include <linux/netfilter.h>
+#ifdef __KERNEL__
 #include <linux/netdevice.h>
 #include <net/protocol.h>
+#endif
 
 /* IP Cache bits. */
 /* Src IP address. */
include/net/ip.h +2 -0
diff -Naur linux-2.6.11.orig/include/net/ip.h linux-2.6.11/include/net/ip.h
@@ -30,8 +30,10 @@
 #include <linux/netdevice.h>
 #include <linux/inetdevice.h>
 #include <linux/in_route.h>
+#ifdef __KERNEL__
 #include <linux/netfilter.h>
 #include <linux/netfilter_ipv4.h>
+#endif
 #include <net/route.h>
 #include <net/arp.h>
 #include <net/snmp.h>