]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
build: remove support for Linux 3.2
authorJan Engelhardt <jengelh@inai.de>
Tue, 16 Oct 2012 02:02:31 +0000 (04:02 +0200)
committerJan Engelhardt <jengelh@inai.de>
Mon, 12 Nov 2012 17:31:16 +0000 (18:31 +0100)
INSTALL
configure.ac
doc/changelog.txt
extensions/compat_xtables.c
extensions/compat_xtables.h
extensions/xt_DNETMAP.c

diff --git a/INSTALL b/INSTALL
index 00e273788f4d440038b6b428f7730101f6809c29..cb67cd27ab39e76ce0c792d8635a91cac52e593b 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -14,7 +14,7 @@ Supported configurations for this release
 
        * iptables >= 1.4.5
 
-       * kernel-devel >= 3.2
+       * kernel-devel >= 3.3
          with prepared build/output directory
          - CONFIG_NF_CONNTRACK or CONFIG_IP_NF_CONNTRACK
          - CONFIG_NF_CONNTRACK_MARK or CONFIG_IP_NF_CONNTRACK_MARK
index c815f38d2b70629b18fdbc0a54b062461404b4a5..1c35a4feddc5bc46bfdcd029fd04319a6d00ff39 100644 (file)
@@ -65,7 +65,7 @@ if test -n "$kbuilddir"; then
                echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
                if test "$kmajor" -gt 3 -o "$kmajor" -eq 3 -a "$kminor" -gt 6; then
                        echo "WARNING: That kernel version is not officially supported.";
-               elif test "$kmajor" -eq 3 -a "$kminor" -ge 2; then
+               elif test "$kmajor" -eq 3 -a "$kminor" -ge 3; then
                        :;
                else
                        echo "WARNING: That kernel version is not officially supported.";
index b54e6d190fb7d590f9cc1debde9b9284b3042a54..326925e0fd83e253af367f3caf093cf27cd58e0f 100644 (file)
@@ -2,7 +2,7 @@
 HEAD
 ====
 Changes:
-- remove support for Linux 2.6.17–3.1
+- remove support for Linux 2.6.17–3.2
 - remove xt_TEE (this is available upstream since 2.6.35)
 - remove xt_CHECKSUM (this is available upstream since 2.6.36)
 
index 851c0ccf010cdd50bdbb03ea7455ca4c5e9ef30d..0840624c86cbac75454bfafeeed5cf297336ca7a 100644 (file)
@@ -154,15 +154,6 @@ void *HX_memmem(const void *space, size_t spacesize,
 }
 EXPORT_SYMBOL_GPL(HX_memmem);
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && defined(WITH_IPV6)
-int xtnu_ipv6_skip_exthdr(const struct sk_buff *skb, int start,
-    uint8_t *nexthdrp, __be16 *fragoffp)
-{
-       return ipv6_skip_exthdr(skb, start, nexthdrp);
-}
-EXPORT_SYMBOL_GPL(xtnu_ipv6_skip_exthdr);
-#endif
-
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 5, 0) && defined(WITH_IPV6)
 int xtnu_ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
     int target, unsigned short *fragoff, int *fragflg)
index 6d6d4017a7a6b049aa4c255e6f24af7ba9fe699b..ffcf6fe630e4054a2a4fdb238c472c2538e6b2cf 100644 (file)
@@ -8,8 +8,8 @@
 
 #define DEBUGP Use__pr_debug__instead
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
-#      warning Kernels below 3.2 not supported.
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
+#      warning Kernels below 3.3 not supported.
 #endif
 
 #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
 
 #define rt_dst(rt)     (&(rt)->dst)
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
-#      define nf_nat_ipv4_multi_range_compat nf_nat_multi_range_compat
-#      define nf_nat_ipv4_range nf_nat_range
-#      define NF_NAT_RANGE_MAP_IPS IP_NAT_RANGE_MAP_IPS
-#      define ipv6_skip_exthdr xtnu_ipv6_skip_exthdr
-#endif
-
 #if !defined(NIP6) && !defined(NIP6_FMT)
 #      define NIP6(addr) \
                ntohs((addr).s6_addr16[0]), \
index fe2b269efe3d40503f2c6b5df0b2d9376527eaed..989f7027c0f983d0ca81e4e9fa0e9d65067153dc 100644 (file)
 #include <net/netfilter/nf_nat_rule.h>
 #include <net/net_namespace.h>
 #include <net/netns/generic.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
-#      include <net/netfilter/nf_nat.h>
-#else
-#      include <linux/netfilter/nf_nat.h>
-#endif
+#include <linux/netfilter/nf_nat.h>
 #include "compat_xtables.h"
 #include "xt_DNETMAP.h"