diff options
author | Phil Sutter <phil@nwl.cc> | 2022-11-25 21:42:20 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-12-02 01:44:17 +0100 |
commit | 365647ef056828bc3cb56efef12114951fcb730d (patch) | |
tree | 0db3ee2b2d7167d7de0ce24a7254e9c068c309bd /iptables/nft-shared.h | |
parent | fb63f8b7337aa11a667537e6a3b399062ede2eb5 (diff) |
xtables: Introduce xtables_clear_iptables_command_state()
This is nft_clear_iptables_command_state() but in a location reachable
by legacy iptables, too.
Changes callers in non-family-specific code to use clear_cs callback
instead of directly calling it - ebtables still has a custom variant.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index e2c3ac7b..07d39131 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -216,7 +216,6 @@ void get_cmp_data(struct nftnl_expr *e, void *data, size_t dlen, bool *inv); bool nft_rule_to_iptables_command_state(struct nft_handle *h, const struct nftnl_rule *r, struct iptables_command_state *cs); -void nft_clear_iptables_command_state(struct iptables_command_state *cs); 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); |