mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Remove xtables-addons
This commit is contained in:
parent
55cf527c17
commit
9c253a2823
7 changed files with 0 additions and 20542 deletions
|
@ -1,11 +0,0 @@
|
|||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -44,7 +44,7 @@ regular_CFLAGS="-Wall -Waggregate-return
|
||||
|
||||
if test -n "$kbuilddir"; then
|
||||
AC_MSG_CHECKING([kernel version that we will build against])
|
||||
- krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease | $AWK -v 'FS=[[^0-9.]]' '{print $1; exit}')"
|
||||
+ krel="$(make -sC "$kbuilddir" M=$PWD kernelversion | $AWK -v 'FS=[[^0-9.]]' '{print $1; exit}')"
|
||||
save_IFS="$IFS"
|
||||
IFS='.'
|
||||
set x $krel
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,136 +0,0 @@
|
|||
--- a/extensions/LUA/xt_LUA_target.c
|
||||
+++ b/extensions/LUA/xt_LUA_target.c
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/module.h>
|
||||
-#include <asm/uaccess.h>
|
||||
+#include <linux/uaccess.h>
|
||||
#include <net/ip.h>
|
||||
#include <linux/netfilter/x_tables.h>
|
||||
#include "xt_LUA.h"
|
||||
@@ -64,10 +64,10 @@ uint32_t lua_state_refs[LUA_STATE_ARRAY
|
||||
* XT_CONTINUE inside the *register_lua_packet_lib* function.
|
||||
*/
|
||||
|
||||
-spinlock_t lock = SPIN_LOCK_UNLOCKED;
|
||||
+DEFINE_SPINLOCK(lock);
|
||||
|
||||
static uint32_t
|
||||
-lua_tg(struct sk_buff *pskb, const struct xt_target_param *par)
|
||||
+lua_tg(struct sk_buff *pskb, const struct xt_action_param *par)
|
||||
{
|
||||
uint32_t verdict;
|
||||
lua_packet_segment *p;
|
||||
@@ -79,7 +79,7 @@ lua_tg(struct sk_buff *pskb, const struc
|
||||
|
||||
L = lua_envs[info->state_id]->L;
|
||||
|
||||
- if (!skb_make_writable(pskb, pskb->len))
|
||||
+ if (skb_ensure_writable(pskb, pskb->len))
|
||||
return NF_DROP;
|
||||
|
||||
/* call the function provided by --function parameter or the default 'process_packet' defined in Lua */
|
||||
@@ -88,11 +88,11 @@ lua_tg(struct sk_buff *pskb, const struc
|
||||
/* push the lua_packet_segment as a parameter */
|
||||
p = (lua_packet_segment *)lua_newuserdata(L, sizeof(lua_packet_segment));
|
||||
if (pskb->mac_header)
|
||||
- p->start = pskb->mac_header;
|
||||
+ p->start = skb_mac_header(pskb);
|
||||
else if (pskb->network_header)
|
||||
- p->start = pskb->network_header;
|
||||
+ p->start = skb_network_header(pskb);
|
||||
else if (pskb->transport_header)
|
||||
- p->start = pskb->transport_header;
|
||||
+ p->start = skb_transport_header(pskb);
|
||||
p->offset = 0;
|
||||
p->length = (unsigned long)pskb->tail - (unsigned long)p->start;
|
||||
p->changes = NULL;
|
||||
@@ -208,16 +208,16 @@ static bool load_script_into_state(uint3
|
||||
* some workqueue initialization. So far this is done each time this function
|
||||
* is called, subject to change.
|
||||
*/
|
||||
-static bool
|
||||
+static int
|
||||
lua_tg_checkentry(const struct xt_tgchk_param *par)
|
||||
{
|
||||
const struct xt_lua_tginfo *info = par->targinfo;
|
||||
|
||||
if (load_script_into_state(info->state_id, info->script_size, (char *)info->buf)) {
|
||||
lua_state_refs[info->state_id]++;
|
||||
- return true;
|
||||
+ return 0;
|
||||
}
|
||||
- return false;
|
||||
+ return -EINVAL;
|
||||
}
|
||||
|
||||
/*::*
|
||||
--- a/extensions/LUA/lua/llimits.h
|
||||
+++ b/extensions/LUA/lua/llimits.h
|
||||
@@ -8,7 +8,6 @@
|
||||
#define llimits_h
|
||||
|
||||
#include <stddef.h>
|
||||
-#include <limits.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
--- a/extensions/LUA/lua/lapi.c
|
||||
+++ b/extensions/LUA/lua/lapi.c
|
||||
@@ -4,9 +4,6 @@
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
-#include <stdarg.h>
|
||||
-#include <math.h>
|
||||
-#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#define lapi_c
|
||||
--- a/extensions/LUA/lua/ltable.c
|
||||
+++ b/extensions/LUA/lua/ltable.c
|
||||
@@ -18,7 +18,6 @@
|
||||
** Hence even when the load factor reaches 100%, performance remains good.
|
||||
*/
|
||||
|
||||
-#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#define ltable_c
|
||||
--- a/extensions/LUA/lua/luaconf.h
|
||||
+++ b/extensions/LUA/lua/luaconf.h
|
||||
@@ -13,8 +13,12 @@
|
||||
#if !defined(__KERNEL__)
|
||||
#include <limits.h>
|
||||
#else
|
||||
+#include <linux/kernel.h>
|
||||
+
|
||||
+#undef UCHAR_MAX
|
||||
+#undef BUFSIZ
|
||||
+#undef NO_FPU
|
||||
#define UCHAR_MAX 255
|
||||
-#define SHRT_MAX 32767
|
||||
#define BUFSIZ 8192
|
||||
#define NO_FPU
|
||||
#endif
|
||||
@@ -637,6 +641,8 @@ union luai_Cast { double l_d; long l_l;
|
||||
*/
|
||||
#if defined(__KERNEL__)
|
||||
#undef LUA_USE_ULONGJMP
|
||||
+#define setjmp __builtin_setjmp
|
||||
+#define longjmp __builtin_longjmp
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
--- a/extensions/LUA/lua/llex.h
|
||||
+++ b/extensions/LUA/lua/llex.h
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "lobject.h"
|
||||
#include "lzio.h"
|
||||
|
||||
+/* prevent conflict with definition from asm/current.h */
|
||||
+#undef current
|
||||
|
||||
#define FIRST_RESERVED 257
|
||||
|
|
@ -1,284 +0,0 @@
|
|||
Linux 5.16 includes 04e85bbf71c9 ("isystem: delete global -isystem compile option")
|
||||
|
||||
compile error on >=5.16
|
||||
xtables-addons-3.21/extensions/LUA/lua/lua.h:12:10: fatal error: stdarg.h: No such file or directory
|
||||
12 | #include <stdarg.h>
|
||||
| ^~~~~~~~~~
|
||||
|
||||
Generated with coccinelle:
|
||||
|
||||
cat <<EOF>cocci-xtables-lua-linux-5.16.spatch
|
||||
@include_arg@
|
||||
@@
|
||||
#include <stdarg.h>
|
||||
|
||||
@include_def@
|
||||
@@
|
||||
#include <stddef.h>
|
||||
|
||||
@include_both depends on include_arg && include_def@
|
||||
@@
|
||||
#include <stdarg.h>
|
||||
|
||||
@add_include_linux_stdheaders_both depends on include_both@
|
||||
@@
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
?#include <stdarg.h>
|
||||
?#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stdarg.h>
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
@add_include_linux_stdheaders depends on !include_both@
|
||||
@@
|
||||
(
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stdarg.h>
|
||||
+#else
|
||||
+#include <linux/stdarg.h>
|
||||
+#endif
|
||||
|
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
)
|
||||
EOF
|
||||
spatch --in-place --include-headers --no-includes --sp-file cocci-xtables-lua-linux-5.16.spatch --dir extensions/LUA/lua/
|
||||
|
||||
---
|
||||
|
||||
--- a/extensions/LUA/lua/lauxlib.c
|
||||
+++ b/extensions/LUA/lua/lauxlib.c
|
||||
@@ -4,7 +4,12 @@
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stdarg.h>
|
||||
+#else
|
||||
+#include <linux/stdarg.h>
|
||||
+#endif
|
||||
|
||||
#if !defined(__KERNEL__)
|
||||
#include <ctype.h>
|
||||
--- a/extensions/LUA/lua/lauxlib.h
|
||||
+++ b/extensions/LUA/lua/lauxlib.h
|
||||
@@ -9,7 +9,12 @@
|
||||
#define lauxlib_h
|
||||
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
#include <linux/slab.h> /* for kmalloc and kfree when allocating luaL_Buffer */
|
||||
|
||||
#if !defined(__KERNEL__)
|
||||
--- a/extensions/LUA/lua/ldebug.c
|
||||
+++ b/extensions/LUA/lua/ldebug.c
|
||||
@@ -5,8 +5,14 @@
|
||||
*/
|
||||
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stdarg.h>
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
#include <string.h>
|
||||
|
||||
#define ldebug_c
|
||||
--- a/extensions/LUA/lua/ldump.c
|
||||
+++ b/extensions/LUA/lua/ldump.c
|
||||
@@ -4,7 +4,12 @@
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#define ldump_c
|
||||
#define LUA_CORE
|
||||
--- a/extensions/LUA/lua/lfunc.c
|
||||
+++ b/extensions/LUA/lua/lfunc.c
|
||||
@@ -5,7 +5,12 @@
|
||||
*/
|
||||
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#define lfunc_c
|
||||
#define LUA_CORE
|
||||
--- a/extensions/LUA/lua/llimits.h
|
||||
+++ b/extensions/LUA/lua/llimits.h
|
||||
@@ -7,7 +7,12 @@
|
||||
#ifndef llimits_h
|
||||
#define llimits_h
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
--- a/extensions/LUA/lua/lmem.c
|
||||
+++ b/extensions/LUA/lua/lmem.c
|
||||
@@ -5,7 +5,12 @@
|
||||
*/
|
||||
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#define lmem_c
|
||||
#define LUA_CORE
|
||||
--- a/extensions/LUA/lua/lmem.h
|
||||
+++ b/extensions/LUA/lua/lmem.h
|
||||
@@ -8,7 +8,12 @@
|
||||
#define lmem_h
|
||||
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#include "llimits.h"
|
||||
#include "lua.h"
|
||||
--- a/extensions/LUA/lua/lobject.c
|
||||
+++ b/extensions/LUA/lua/lobject.c
|
||||
@@ -4,7 +4,12 @@
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stdarg.h>
|
||||
+#else
|
||||
+#include <linux/stdarg.h>
|
||||
+#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
--- a/extensions/LUA/lua/lobject.h
|
||||
+++ b/extensions/LUA/lua/lobject.h
|
||||
@@ -9,7 +9,12 @@
|
||||
#define lobject_h
|
||||
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stdarg.h>
|
||||
+#else
|
||||
+#include <linux/stdarg.h>
|
||||
+#endif
|
||||
|
||||
|
||||
#include "llimits.h"
|
||||
--- a/extensions/LUA/lua/lstate.c
|
||||
+++ b/extensions/LUA/lua/lstate.c
|
||||
@@ -5,7 +5,12 @@
|
||||
*/
|
||||
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#define lstate_c
|
||||
#define LUA_CORE
|
||||
--- a/extensions/LUA/lua/lstrlib.c
|
||||
+++ b/extensions/LUA/lua/lstrlib.c
|
||||
@@ -6,7 +6,12 @@
|
||||
|
||||
|
||||
#include <ctype.h>
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
--- a/extensions/LUA/lua/ltablib.c
|
||||
+++ b/extensions/LUA/lua/ltablib.c
|
||||
@@ -5,7 +5,12 @@
|
||||
*/
|
||||
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#define ltablib_c
|
||||
#define LUA_LIB
|
||||
--- a/extensions/LUA/lua/lua.h
|
||||
+++ b/extensions/LUA/lua/lua.h
|
||||
@@ -9,8 +9,14 @@
|
||||
#ifndef lua_h
|
||||
#define lua_h
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stdarg.h>
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#include "luaconf.h"
|
||||
|
||||
--- a/extensions/LUA/lua/luaconf.h
|
||||
+++ b/extensions/LUA/lua/luaconf.h
|
||||
@@ -8,7 +8,12 @@
|
||||
#ifndef lconfig_h
|
||||
#define lconfig_h
|
||||
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
||||
#include <stddef.h>
|
||||
+#else
|
||||
+#include <linux/stddef.h>
|
||||
+#endif
|
||||
|
||||
#if !defined(__KERNEL__)
|
||||
#include <limits.h>
|
|
@ -1,11 +0,0 @@
|
|||
--- a/extensions/LUA/Makefile
|
||||
+++ b/extensions/LUA/Makefile
|
||||
@@ -110,7 +110,7 @@ PKG_CONFIG = /usr/bin/pkg-config
|
||||
RANLIB = ranlib
|
||||
SED = /bin/sed
|
||||
SET_MAKE =
|
||||
-SHELL = /bin/bash
|
||||
+SHELL = /bin/sh
|
||||
STRIP = strip
|
||||
VERSION = 1.21
|
||||
abs_builddir = /home/andre/Dropbox/xtables-addons/extensions/LUA
|
Loading…
Add table
Add a link
Reference in a new issue