summaryrefslogtreecommitdiffstats
path: root/iptables/nft-ipv4.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-07-19 18:32:00 +0200
committerFlorian Westphal <fw@strlen.de>2018-07-19 23:08:22 +0200
commitae8eece4489b9267be2a82197908d80db73ffd0b (patch)
tree1ea20a4551cf8fb3b7fe39a60085a1c925cb66ba /iptables/nft-ipv4.c
parent26877940415158bbba33c944d25af1c37f9d1452 (diff)
xtables: get rid of nft_ipv{4,6}_print_header()
Both functions are identical, just passing all their parameters 1:1 to print_header() shared function. So just replace them by the latter. 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.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c
index 36258c97..9db82817 100644
--- a/iptables/nft-ipv4.c
+++ b/iptables/nft-ipv4.c
@@ -246,14 +246,6 @@ static void nft_ipv4_parse_immediate(const char *jumpto, bool nft_goto,
cs->fw.ip.flags |= IPT_F_GOTO;
}
-static void nft_ipv4_print_header(unsigned int format, const char *chain,
- const char *pol,
- const struct xt_counters *counters,
- bool basechain, uint32_t refs)
-{
- print_header(format, chain, pol, counters, basechain, refs);
-}
-
static void print_ipv4_addr(const struct iptables_command_state *cs,
unsigned int format)
{
@@ -512,7 +504,7 @@ struct nft_family_ops nft_family_ops_ipv4 = {
.parse_meta = nft_ipv4_parse_meta,
.parse_payload = nft_ipv4_parse_payload,
.parse_immediate = nft_ipv4_parse_immediate,
- .print_header = nft_ipv4_print_header,
+ .print_header = print_header,
.print_firewall = nft_ipv4_print_firewall,
.save_firewall = nft_ipv4_save_firewall,
.save_counters = nft_ipv4_save_counters,