[packages/xtables-addons] - rel 2, build fix for kernel 5.10.247

baggins baggins at pld-linux.org
Mon Dec 8 07:58:06 CET 2025


commit 2ac2e7c4182e460fb85ce7074ea41bb4b5d67109
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Dec 8 09:57:46 2025 +0100

    - rel 2, build fix for kernel 5.10.247

 kernel-5.10.247.patch | 11 +++++++++++
 xtables-addons.spec   |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/xtables-addons.spec b/xtables-addons.spec
index 0d48717..0c1c864 100644
--- a/xtables-addons.spec
+++ b/xtables-addons.spec
@@ -21,7 +21,7 @@ exit 1
 %define		_enable_debug_packages	0
 %endif
 
-%define		rel	1
+%define		rel	2
 %define		pname	xtables-addons
 Summary:	Additional extensions for xtables packet filtering system
 Summary(pl.UTF-8):	Dodatkowe rozszerzenia do systemu filtrowania pakietów xtables
@@ -32,6 +32,7 @@ License:	GPL v2
 Group:		Networking/Admin
 Source0:	https://inai.de/files/xtables-addons/%{pname}-%{version}.tar.zst
 # Source0-md5:	8966c920f3e3921c19a8200ca8ba238b
+Patch0:		kernel-5.10.247.patch
 URL:		http://xtables-addons.sourceforge.net/
 BuildRequires:	autoconf >= 2.65
 BuildRequires:	automake >= 1:1.11
@@ -109,6 +110,7 @@ done\
 
 %prep
 %setup -q -n %{pname}-%{version}
+%patch -P0 -p1
 
 %build
 %configure \
diff --git a/kernel-5.10.247.patch b/kernel-5.10.247.patch
new file mode 100644
index 0000000..ee105f2
--- /dev/null
+++ b/kernel-5.10.247.patch
@@ -0,0 +1,11 @@
+--- xtables-addons-3.30/extensions/xt_TARPIT.c~	2025-10-11 14:15:06.000000000 +0200
++++ xtables-addons-3.30/extensions/xt_TARPIT.c	2025-12-08 09:56:09.273319752 +0100
+@@ -418,7 +418,7 @@
+ 	}
+ 	fl6.flowi6_oif = l3mdev_master_ifindex(READ_ONCE(skb_dst(nskb)->dev));
+ 	fl6.flowi6_mark = IP6_REPLY_MARK(net, oldskb->mark);
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) || LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 247)
+ 	security_skb_classify_flow(nskb, flowi6_to_flowi_common(&fl6));
+ #else
+ 	security_skb_classify_flow(nskb, flowi6_to_flowi(&fl6));
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xtables-addons.git/commitdiff/2ac2e7c4182e460fb85ce7074ea41bb4b5d67109



More information about the pld-cvs-commit mailing list