summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-07-19 18:32:04 +0200
committerFlorian Westphal <fw@strlen.de>2018-07-19 23:10:27 +0200
commitfa1681f170e2b8d80d9ef9d4564797f0f5969fd0 (patch)
treeb178520f1f54197a4e4e47e605ccc259fbbc301c /iptables/nft-shared.c
parent444d581bcc561a73d172522a83b91772f9130ba3 (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-shared.c')
-rw-r--r--iptables/nft-shared.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index 1018b631..60b539c8 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -675,10 +675,10 @@ void print_header(unsigned int format, const char *chain, const char *pol,
printf("\n");
}
-void print_firewall_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_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)
{
if (format & FMT_LINENUMBERS)
printf(FMT("%-4u ", "%u "), num);
@@ -765,12 +765,12 @@ print_iface(char letter, const char *iface, const unsigned char *mask, int inv)
printf(" ");
}
-void save_firewall_details(const struct iptables_command_state *cs,
- uint8_t invflags, uint16_t proto,
- const char *iniface,
- unsigned const char *iniface_mask,
- const char *outiface,
- unsigned const char *outiface_mask)
+void save_rule_details(const struct iptables_command_state *cs,
+ uint8_t invflags, uint16_t proto,
+ const char *iniface,
+ unsigned const char *iniface_mask,
+ const char *outiface,
+ unsigned const char *outiface_mask)
{
if (iniface != NULL) {
print_iface('i', iniface, iniface_mask,