]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
Fix compilation error for 2.6.18-stable
authorJan Engelhardt <jengelh@computergmbh.de>
Fri, 25 Apr 2008 18:46:23 +0000 (20:46 +0200)
committerJan Engelhardt <jengelh@computergmbh.de>
Fri, 25 Apr 2008 18:46:39 +0000 (20:46 +0200)
The prototype of ip_route_me_harder changed in 2.6.18.5, so I think
Xtables-addons should account for it. This renders compilation on
anything below it impossible. (2.6.17 is not supported in general.)

INSTALL
extensions/compat_xtables.c

diff --git a/INSTALL b/INSTALL
index 3f6b4ad63abbff8edfe653fade1191d4b9f91b8e..06de59a2175bd3655cc5a8a8095544e45b5f392e 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -14,7 +14,7 @@ Prerequirements
 
        * xtables(-devel) 1.5.2
 
-       * kernel-source >= 2.6.18 with prepared build/output directory
+       * kernel-source >= 2.6.18.5 with prepared build/output directory
 
 
 Selecting extensions
index cea80e7cb2be69532df5fb1e816a1c63df821bf7..05ddb2d1a0ce212a16352b3b01eae31befb83540 100644 (file)
@@ -299,7 +299,8 @@ int xtnu_ip_route_me_harder(struct sk_buff *skb, unsigned int addr_type)
        struct sk_buff *nskb = skb;
        int ret;
 
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18)
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 17)
+       /* Actually this one is valid up to 2.6.18.4, but changed in 2.6.18.5 */
        ret = ip_route_me_harder(&skb);
 #elif LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 23)
        ret = ip_route_me_harder(&nskb, addr_type);