]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
Delete compat_xtables.ko for being unused
authorJan Engelhardt <jengelh@inai.de>
Thu, 29 May 2025 21:34:36 +0000 (23:34 +0200)
committerJan Engelhardt <jengelh@inai.de>
Thu, 29 May 2025 21:34:36 +0000 (23:34 +0200)
The use of HX_memmem was rescinded in commit v3.24-6-g30ba7eb .
compat_xtables.ko therefore is unused and can be removed.

extensions/Kbuild
extensions/compat_xtables.c [deleted file]

index 02ca25f557cb3205ba9a919bb7c52a0f2c95ab56..9e57f9af326d0c80a3b7a032953dd838d3a1223e 100644 (file)
@@ -3,8 +3,6 @@
 include ${XA_ABSTOPSRCDIR}/mconfig
 -include ${XA_ABSTOPSRCDIR}/mconfig.*
 
-obj-m                    += compat_xtables.o
-
 obj-${build_ACCOUNT}     += ACCOUNT/
 obj-${build_CHAOS}       += xt_CHAOS.o
 obj-${build_DELUDE}      += xt_DELUDE.o
diff --git a/extensions/compat_xtables.c b/extensions/compat_xtables.c
deleted file mode 100644 (file)
index 53f9012..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- *     API compat layer
- *     written by Jan Engelhardt, 2008 - 2010
- *
- *     This program is free software; you can redistribute it and/or
- *     modify it under the terms of the GNU General Public License, either
- *     version 2 of the License, or any later version.
- */
-#include <linux/ip.h>
-#include <linux/kconfig.h>
-#include <linux/kernel.h>
-#include <linux/kmod.h>
-#include <linux/list.h>
-#include <linux/module.h>
-#include <linux/slab.h>
-#include <linux/spinlock.h>
-#include <linux/version.h>
-#include <linux/netfilter_ipv4.h>
-#include <linux/netfilter/x_tables.h>
-#include <linux/netfilter_ipv6/ip6_tables.h>
-#include <linux/netfilter_arp.h>
-#include <net/ip.h>
-#include <net/ipv6.h>
-#include <net/route.h>
-#include <linux/export.h>
-#include "compat_skbuff.h"
-#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
-#      define WITH_IPV6 1
-#endif
-
-extern void *HX_memmem(const void *space, size_t spacesize, const void *point, size_t pointsize);
-void *HX_memmem(const void *space, size_t spacesize,
-    const void *point, size_t pointsize)
-{
-       size_t i;
-
-       if (pointsize > spacesize)
-               return NULL;
-       for (i = 0; i <= spacesize - pointsize; ++i)
-               if (memcmp(space + i, point, pointsize) == 0)
-                       return (void *)space + i;
-       return NULL;
-}
-EXPORT_SYMBOL_GPL(HX_memmem);
-
-MODULE_LICENSE("GPL");