]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
build: remove support for Linux 4.14
authorJan Engelhardt <jengelh@inai.de>
Mon, 12 Feb 2018 14:04:37 +0000 (15:04 +0100)
committerJan Engelhardt <jengelh@inai.de>
Mon, 12 Feb 2018 14:09:52 +0000 (15:09 +0100)
configure.ac
doc/changelog.txt
extensions/compat_xtables.h
extensions/pknock/xt_pknock.c

index 76fd4ab3a4b411620e6b11673915361ef66768c1..290b92aa6e61627270520758db34bccd842161ba 100644 (file)
@@ -59,7 +59,7 @@ if test -n "$kbuilddir"; then
                echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
                if test "$kmajor" -gt 4 -o "$kmajor" -eq 4 -a "$kminor" -gt 15; then
                        echo "WARNING: That kernel version is not officially supported yet. Continue at own luck.";
-               elif test "$kmajor" -eq 4 -a "$kminor" -ge 14; then
+               elif test "$kmajor" -eq 4 -a "$kminor" -ge 15; then
                        :
                else
                        echo "WARNING: That kernel version is not officially supported.";
index a5bbcbe76221a79474765cbc09cad177ebe45644..18c9bf7640f65baa7f0453a8a0eac3e15e7cafc1 100644 (file)
@@ -4,7 +4,7 @@ HEAD
 Enhancements:
 - support for Linux up to 4.15
 Changes:
-- remove support for Linux 3.7--4.13
+- remove support for Linux 3.7--4.14
 
 
 v2.14 (2017-11-22)
index faf5dd85032bc4ada3c8e233c85b0795c3c5b80c..d08354aed75611f8642c84aab33d3d1894f4d4ff 100644 (file)
@@ -8,8 +8,8 @@
 
 #define DEBUGP Use__pr_debug__instead
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
-#      warning Kernels below 4.14 not supported.
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
+#      warning Kernels below 4.15 not supported.
 #endif
 
 #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
index 7be0345b9961bfce1472239fa0ee9c304ad9cb27..c76901ac4c1a05d8eaf72cbefe3cd4796981e2a4 100644 (file)
@@ -357,18 +357,10 @@ has_logged_during_this_minute(const struct peer *peer)
  *
  * @r: rule
  */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
 static void peer_gc(struct timer_list *tl)
-#else
-static void peer_gc(unsigned long r)
-#endif
 {
        unsigned int i;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
        struct xt_pknock_rule *rule = from_timer(rule, tl, timer);
-#else
-       struct xt_pknock_rule *rule = (struct xt_pknock_rule *)r;
-#endif
        struct peer *peer;
        struct list_head *pos, *n;
 
@@ -475,15 +467,7 @@ add_rule(struct xt_pknock_mtinfo *info)
        rule->peer_head      = alloc_hashtable(peer_hashsize);
        if (rule->peer_head == NULL)
                goto out;
-
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
        timer_setup(&rule->timer, peer_gc, 0);
-#else
-       init_timer(&rule->timer);
-       rule->timer.function    = peer_gc;
-       rule->timer.data        = (unsigned long)rule;
-#endif
-
        rule->status_proc = proc_create_data(info->rule_name, 0, pde,
                            &pknock_proc_ops, rule);
        if (rule->status_proc == NULL)