diff options
author | Phil Sutter <phil@nwl.cc> | 2022-05-05 18:13:12 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-05-11 12:02:28 +0200 |
commit | 3b8a6a6fa870c5ed4a2c533fcec9524bc98e5709 (patch) | |
tree | 611b69d2b1116e3961700182f596b64c8263404f /iptables/xshared.h | |
parent | 8ff84eaf987d74603a88b02632bd00187defcf8d (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/xshared.h')
-rw-r--r-- | iptables/xshared.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h index 2fdebc32..e69da735 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -258,7 +258,6 @@ void save_rule_details(const char *iniface, unsigned const char *iniface_mask, int print_match_save(const struct xt_entry_match *e, const void *ip); -void xtables_printhelp(const struct xtables_rule_match *matches); void exit_tryhelp(int status, int line) __attribute__((noreturn)); struct addr_mask { |