diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:32:03 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 23:10:06 +0200 |
commit | 444d581bcc561a73d172522a83b91772f9130ba3 (patch) | |
tree | a11a0a87cecad3a622c4f714941924719fdeb88c /iptables/nft-ipv4.c | |
parent | 34e1e234a937242ebebbe225438b4567ca0c5bd2 (diff) |
xtables: get rid of nft_ipv{4,6}_save_counters()
Just replace them by the shared save_counters() function after adjusting
it's signature to meet callback requirements.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-ipv4.c')
-rw-r--r-- | iptables/nft-ipv4.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c index 2ca3155e..f118dcb8 100644 --- a/iptables/nft-ipv4.c +++ b/iptables/nft-ipv4.c @@ -414,13 +414,6 @@ static void nft_ipv4_post_parse(int command, " source or destination IP addresses"); } -static void nft_ipv4_save_counters(const void *data) -{ - const struct iptables_command_state *cs = data; - - save_counters(cs->counters.pcnt, cs->counters.bcnt); -} - static int nft_ipv4_xlate(const void *data, struct xt_xlate *xl) { const struct iptables_command_state *cs = data; @@ -492,7 +485,7 @@ struct nft_family_ops nft_family_ops_ipv4 = { .print_header = print_header, .print_firewall = nft_ipv4_print_firewall, .save_firewall = nft_ipv4_save_firewall, - .save_counters = nft_ipv4_save_counters, + .save_counters = save_counters, .proto_parse = nft_ipv4_proto_parse, .post_parse = nft_ipv4_post_parse, .parse_target = nft_ipv46_parse_target, |