Blame SOURCES/0005-arptables-Support-x-exact-flag.patch

6d5a60
From 5d197a9a4c0f456243894aea4b5fd059ecf6c402 Mon Sep 17 00:00:00 2001
6d5a60
From: Phil Sutter <phil@nwl.cc>
6d5a60
Date: Tue, 7 Jun 2022 18:07:00 +0200
6d5a60
Subject: [PATCH] arptables: Support -x/--exact flag
6d5a60
6d5a60
Legacy arptables accepts but ignores the flag. Yet there are remains of
6d5a60
the functionality in sources, like OPT_EXPANDED define and a print_num()
6d5a60
function which acts on FMT_KILOMEGAGIGA flag being set or not. So
6d5a60
instead of mimicking legacy behaviour by explicitly ignoring -x flag for
6d5a60
arptables, just enable the feature for it.
6d5a60
6d5a60
Signed-off-by: Phil Sutter <phil@nwl.cc>
6d5a60
(cherry picked from commit 24c5b593156de29a49146bcc3497ebb7d8d40ef0)
6d5a60
---
6d5a60
 iptables/xshared.h | 2 +-
6d5a60
 1 file changed, 1 insertion(+), 1 deletion(-)
6d5a60
6d5a60
diff --git a/iptables/xshared.h b/iptables/xshared.h
6d5a60
index 14568bb00fb65..a50c8b7298072 100644
6d5a60
--- a/iptables/xshared.h
6d5a60
+++ b/iptables/xshared.h
6d5a60
@@ -69,7 +69,7 @@ struct xtables_target;
6d5a60
 
6d5a60
 #define OPTSTRING_COMMON "-:A:C:D:E:F::I:L::M:N:P:VX::Z::" "c:d:i:j:o:p:s:t:"
6d5a60
 #define IPT_OPTSTRING	OPTSTRING_COMMON "R:S::W::" "46bfg:h::m:nvw::x"
6d5a60
-#define ARPT_OPTSTRING	OPTSTRING_COMMON "R:S::" "h::l:nv" /* "m:" */
6d5a60
+#define ARPT_OPTSTRING	OPTSTRING_COMMON "R:S::" "h::l:nvx" /* "m:" */
6d5a60
 #define EBT_OPTSTRING	OPTSTRING_COMMON "hv"
6d5a60
 
6d5a60
 /* define invflags which won't collide with IPT ones */
6d5a60
-- 
6d5a60
2.34.1
6d5a60