diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:32:04 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 23:10:27 +0200 |
commit | fa1681f170e2b8d80d9ef9d4564797f0f5969fd0 (patch) | |
tree | b178520f1f54197a4e4e47e605ccc259fbbc301c /iptables/nft.c | |
parent | 444d581bcc561a73d172522a83b91772f9130ba3 (diff) |
xtables: rename {print,save}_rule functions
The name is quite misleading, since these functions/callbacks are not
about the whole ruleset but just a single rule. So rename them to
reflect this.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft.c')
-rw-r--r-- | iptables/nft.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 0cf325db..7ce7fd2f 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1207,8 +1207,8 @@ nft_rule_print_save(const struct nftnl_rule *r, enum nft_rule_print type, break; } - if (ops->save_firewall) - ops->save_firewall(&cs, format); + if (ops->save_rule) + ops->save_rule(&cs, format); if (ops->clear_cs) ops->clear_cs(&cs); @@ -2216,7 +2216,7 @@ int nft_rule_list(struct nft_handle *h, const char *chain, const char *table, if (chain && rulenum) { __nft_rule_list(h, chain, table, - rulenum, format, ops->print_firewall); + rulenum, format, ops->print_rule); return 1; } @@ -2260,7 +2260,7 @@ int nft_rule_list(struct nft_handle *h, const char *chain, const char *table, &ctrs, basechain, refs); __nft_rule_list(h, chain_name, table, - rulenum, format, ops->print_firewall); + rulenum, format, ops->print_rule); /* we printed the chain we wanted, stop processing. */ if (chain) |