summaryrefslogtreecommitdiffstats
path: root/iptables/iptables.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-05-05 18:13:12 +0200
committerPhil Sutter <phil@nwl.cc>2022-05-11 12:02:28 +0200
commit3b8a6a6fa870c5ed4a2c533fcec9524bc98e5709 (patch)
tree611b69d2b1116e3961700182f596b64c8263404f /iptables/iptables.c
parent8ff84eaf987d74603a88b02632bd00187defcf8d (diff)
xshared: Extend xtables_printhelp() for arptables
The function checks afinfo->family already to cover ip6tables specifics, doing the same for arptables does not make things much worse. This changes arptables-nft help output slightly: * List possible negations extrapositioned, which is preferred anyway (arptables-nft supports both) * List --out-interface option at lexically sorted position * Print --wait option, it's ignored just like with iptables * Restore default target option printing as with legacy arptables (not sure if arptables-nft ever did this) by explicitly loading them. While being at it, add --set-counters short option '-c' to help output for ip(6)tables. This effectively removes the need for (and all users of) xtables_global's 'print_help' callback, thus effectively reverts commit fe83b12fc910e ("libxtables: Introduce xtables_globals print_help callback") which broke libxtables' ABI compatibility. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/iptables.c')
-rw-r--r--iptables/iptables.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/iptables/iptables.c b/iptables/iptables.c
index ccebb1a6..edde604c 100644
--- a/iptables/iptables.c
+++ b/iptables/iptables.c
@@ -90,7 +90,6 @@ struct xtables_globals iptables_globals = {
.optstring = OPTSTRING_COMMON "R:S::W::" "46bfg:h::m:nvw::x",
.orig_opts = original_opts,
.compat_rev = xtables_compatible_revision,
- .print_help = xtables_printhelp,
};
/*