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