diff options
author | Phil Sutter <phil@nwl.cc> | 2021-11-05 22:02:45 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-11-23 15:01:23 +0100 |
commit | 1d73cec02c8d9a0f5bfbd2983c36cc1228b78f45 (patch) | |
tree | 77b13589ecdbbb63ab19adcbcac38e86a04c7f98 /iptables/nft-shared.h | |
parent | e5fb9f8efaa0643a566d079c8201082822a0dc81 (diff) |
xshared: Share print_rule_details() with legacy
Have to pass pointer to counters directly since different fields are
being used for some reason.
Since proto_to_name() is not used outside of xshared.c anymore, make it
static.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index cac5757f..e18df20d 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -167,10 +167,6 @@ void nft_clear_iptables_command_state(struct iptables_command_state *cs); void print_header(unsigned int format, const char *chain, const char *pol, const struct xt_counters *counters, bool basechain, uint32_t refs, uint32_t entries); -void print_rule_details(const struct iptables_command_state *cs, - const char *targname, uint8_t flags, - uint8_t invflags, uint8_t proto, - unsigned int num, unsigned int format); void print_matches_and_target(struct iptables_command_state *cs, unsigned int format); void nft_ipv46_save_chain(const struct nftnl_chain *c, const char *policy); |