ipset-6.11 patch to fix inclusion of linux/export.h

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

 



The tests for inclusion of linux/export.h in
ipset-6.11:kernel/net/netfilter/ipset/{ip_set_getport.c,pfxlen.c} are
incorrect.  linux/export.h did not go in until 3.2.0, check the 3.2
patch set.  Attached is a patch to correct this.

-Henry Culver
diff -uprN ipset-6.11/kernel/net/netfilter/ipset/ip_set_getport.c ipset-6.11-patched/kernel/net/netfilter/ipset/ip_set_getport.c
--- ipset-6.11/kernel/net/netfilter/ipset/ip_set_getport.c	2012-01-13 13:26:27.000000000 -0700
+++ ipset-6.11-patched/kernel/net/netfilter/ipset/ip_set_getport.c	2012-01-19 08:01:07.000000000 -0700
@@ -8,7 +8,7 @@
 /* Get Layer-4 data from the packets */
 
 #include <linux/version.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
 #include <linux/export.h>
 #endif
 #include <linux/ip.h>
diff -uprN ipset-6.11/kernel/net/netfilter/ipset/pfxlen.c ipset-6.11-patched/kernel/net/netfilter/ipset/pfxlen.c
--- ipset-6.11/kernel/net/netfilter/ipset/pfxlen.c	2012-01-13 13:26:37.000000000 -0700
+++ ipset-6.11-patched/kernel/net/netfilter/ipset/pfxlen.c	2012-01-19 08:00:58.000000000 -0700
@@ -1,5 +1,5 @@
 #include <linux/version.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
 #include <linux/export.h>
 #endif
 #include <linux/netfilter/ipset/pfxlen.h>

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

  Powered by Linux