]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
build: remove support for Linux 2.6.33
authorJan Engelhardt <jengelh@inai.de>
Mon, 15 Oct 2012 22:52:56 +0000 (00:52 +0200)
committerJan Engelhardt <jengelh@inai.de>
Mon, 12 Nov 2012 17:30:01 +0000 (18:30 +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 5d1cc2806b577419eb1afc44eec2db6fca64a732..37a5018b6e989952307b635c01090872d1a34eff 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -14,7 +14,7 @@ Supported configurations for this release
 
        * iptables >= 1.4.5
 
-       * kernel-devel >= 2.6.33
+       * kernel-devel >= 2.6.34
          with prepared build/output directory
          - CONFIG_NF_CONNTRACK or CONFIG_IP_NF_CONNTRACK
          - CONFIG_NF_CONNTRACK_MARK or CONFIG_IP_NF_CONNTRACK_MARK
index 49b06f4a586fdc341f424b543a32e8ec64d367fa..864e5ad8f28bc68b59fb0447e8029f8c292a9e16 100644 (file)
@@ -67,7 +67,7 @@ if test -n "$kbuilddir"; then
                        echo "WARNING: That kernel version is not officially supported.";
                elif test "$kmajor" -eq 3; then
                        :;
-               elif test "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -ge 33; then
+               elif test "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -ge 34; then
                        :;
                else
                        echo "WARNING: That kernel version is not officially supported.";
index 9c090ebdfe46b8de6bd0970a2656c07100653a65..38fc8a627122138018812930ebff0f8f6503d1a3 100644 (file)
@@ -2,7 +2,7 @@
 HEAD
 ====
 Changes:
-- remove support for Linux 2.6.17--2.6.32
+- remove support for Linux 2.6.17--2.6.33
 
 
 v1.47.1 (2010-10-15)
index 4f3d14ffe79941e3e8d11b75b6ce9f049fb5a3be..f8a422c05c6a850303ed8d5c92e047857e495164 100644 (file)
@@ -30,8 +30,7 @@
 #      define WITH_IPV6 1
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33) && \
-    LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
 static bool xtnu_match_run(const struct sk_buff *skb,
     const struct xt_match_param *par)
 {
@@ -56,8 +55,7 @@ static bool xtnu_match_run(const struct sk_buff *skb,
 }
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33) && \
-    LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
 static bool xtnu_match_check(const struct xt_mtchk_param *par)
 {
        struct xtnu_match *nm = xtcompat_numatch(par->match);
@@ -146,8 +144,7 @@ void xtnu_unregister_matches(struct xtnu_match *nt, unsigned int num)
 EXPORT_SYMBOL_GPL(xtnu_unregister_matches);
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33) && \
-    LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
 static unsigned int
 xtnu_target_run(struct sk_buff *skb, const struct xt_target_param *par)
 {
@@ -174,8 +171,7 @@ xtnu_target_run(struct sk_buff *skb, const struct xt_action_param *par)
 }
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33) && \
-    LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
 static bool xtnu_target_check(const struct xt_tgchk_param *par)
 {
        struct xtnu_target *nt = xtcompat_nutarget(par->target);
index 91bf5c9fb52c5606e35fd57384dcb3627540cdeb..c3f3432eed397a39a9f796b60495fb34f3cf80c8 100644 (file)
@@ -8,8 +8,8 @@
 
 #define DEBUGP Use__pr_debug__instead
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
-#      warning Kernels below 2.6.33 not supported.
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
+#      warning Kernels below 2.6.34 not supported.
 #endif
 
 #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
 #      define xt_unregister_matches xtnu_unregister_matches
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
-#      define ipt_unregister_table(tbl) ipt_unregister_table(&init_net, (tbl))
-#      define ip6t_unregister_table(tbl) ip6t_unregister_table(&init_net, (tbl))
-#else
-#      define ipt_unregister_table(tbl) ipt_unregister_table(tbl)
-#      define ip6t_unregister_table(tbl) ip6t_unregister_table(tbl)
-#endif
+#define ipt_unregister_table(tbl) ipt_unregister_table(&init_net, (tbl))
+#define ip6t_unregister_table(tbl) ip6t_unregister_table(&init_net, (tbl))
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
 #      define rt_dst(rt)       (&(rt)->dst)
index be2817aba0b8ba1853d74e68c220659150d04a1f..fe2b269efe3d40503f2c6b5df0b2d9376527eaed 100644 (file)
 #include <linux/netfilter/x_tables.h>
 #include <linux/version.h>
 #include <net/netfilter/nf_nat_rule.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
 #include <net/net_namespace.h>
 #include <net/netns/generic.h>
-#endif
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
 #      include <net/netfilter/nf_nat.h>
 #else
@@ -109,16 +107,11 @@ struct dnetmap_net {
        struct list_head *dnetmap_iphash;
 };
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
 static int dnetmap_net_id;
 static inline struct dnetmap_net *dnetmap_pernet(struct net *net)
 {
        return net_generic(net, dnetmap_net_id);
 }
-#else
-struct dnetmap_net *dnetmap;
-#define dnetmap_pernet(x) dnetmap
-#endif
 
 static DEFINE_SPINLOCK(dnetmap_lock);
 static DEFINE_MUTEX(dnetmap_mutex);
@@ -871,13 +864,6 @@ static int __net_init dnetmap_net_init(struct net *net)
        struct dnetmap_net *dnetmap_net = dnetmap_pernet(net);
        int i;
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
-       dnetmap = kmalloc(sizeof(struct dnetmap_net),GFP_ATOMIC);
-       if (dnetmap == NULL)
-               return -ENOMEM;
-       dnetmap_net = dnetmap;
-#endif
-
        dnetmap_net->dnetmap_iphash = kmalloc(sizeof(struct list_head) *
                                              hash_size * 2, GFP_ATOMIC);
        if (dnetmap_net->dnetmap_iphash == NULL)
@@ -906,20 +892,15 @@ static void __net_exit dnetmap_net_exit(struct net *net)
        mutex_unlock(&dnetmap_mutex);
 
        kfree(dnetmap_net->dnetmap_iphash);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
        kfree(dnetmap_net);
-#endif
-
        dnetmap_proc_net_exit(net);
 }
 
 static struct pernet_operations dnetmap_net_ops = {
        .init = dnetmap_net_init,
        .exit = dnetmap_net_exit,
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
        .id   = &dnetmap_net_id,
        .size = sizeof(struct dnetmap_net),
-#endif
 };
 
 static struct xt_target dnetmap_tg_reg __read_mostly = {