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-arp.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-arp.c')
-rw-r--r-- | iptables/nft-arp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index a6241498..328c791d 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -436,7 +436,8 @@ static void nft_arp_print_header(unsigned int format, const char *chain, } } -static void print_fw_details(struct arpt_entry *fw, unsigned int format) +static void nft_arp_print_rule_details(struct arpt_entry *fw, + unsigned int format) { char buf[BUFSIZ]; char iface[IFNAMSIZ+2]; @@ -578,8 +579,7 @@ after_devdst: } static void -nft_arp_print_firewall(struct nftnl_rule *r, unsigned int num, - unsigned int format) +nft_arp_print_rule(struct nftnl_rule *r, unsigned int num, unsigned int format) { struct iptables_command_state cs = {}; @@ -588,7 +588,7 @@ nft_arp_print_firewall(struct nftnl_rule *r, unsigned int num, if (format & FMT_LINENUMBERS) printf("%u ", num); - print_fw_details(&cs.arp, format); + nft_arp_print_rule_details(&cs.arp, format); if (cs.jumpto != NULL && strcmp(cs.jumpto, "") != 0) { printf("-j %s", cs.jumpto); @@ -663,8 +663,8 @@ struct nft_family_ops nft_family_ops_arp = { .parse_payload = nft_arp_parse_payload, .parse_immediate = nft_arp_parse_immediate, .print_header = nft_arp_print_header, - .print_firewall = nft_arp_print_firewall, - .save_firewall = NULL, + .print_rule = nft_arp_print_rule, + .save_rule = NULL, .save_counters = NULL, .post_parse = NULL, .rule_to_cs = nft_arp_rule_to_cs, |