1
0
xtables-addons/sle-kernels.patch

33 lines
1.1 KiB
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2021-03-19 10:38:28.244573625 +0100
References: https://bugzilla.suse.com/show_bug.cgi?id=1183753
Workaround the SLE kernels misrepresenting themselves.
---
extensions/xt_TARPIT.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: xtables-addons-3.18/extensions/xt_TARPIT.c
===================================================================
--- xtables-addons-3.18.orig/extensions/xt_TARPIT.c
+++ xtables-addons-3.18/extensions/xt_TARPIT.c
@@ -206,7 +206,7 @@ static void tarpit_tcp4(const struct xt_
return;
/* This packet will not be the same as the other: clear nf fields */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) || defined(SLE_15_3)
nf_reset_ct(nskb);
#else
nf_reset(nskb);
@@ -352,7 +352,7 @@ static void tarpit_tcp6(const struct xt_
}
/* This packet will not be the same as the other: clear nf fields */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) || defined(SLE_15_3)
nf_reset_ct(nskb);
#else
nf_reset(nskb);