diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-24 19:25:25 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-25 16:26:30 +0200 |
commit | 5a4096158261896b9e61837cdb2c081e372e286d (patch) | |
tree | 5c846e9553bbee7bd4627c271b781ee84738ec48 | |
parent | 9f075031a1973fc967cd90de96dc2e87696a2181 (diff) |
arptables: Use the shared nft_ipv46_parse_target()
No point in having a dedicated implementation for 'parse_target'
callback since it is identical with the shared one.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | iptables/nft-arp.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index a2109c60..bd78a866 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -271,13 +271,6 @@ static void nft_arp_parse_meta(struct nft_xt_ctx *ctx, struct nftnl_expr *e, fw->arp.invflags |= ipt_to_arpt_flags(flags); } -static void nft_arp_parse_target(struct xtables_target *target, void *data) -{ - struct iptables_command_state *cs = data; - - cs->target = target; -} - static void nft_arp_parse_immediate(const char *jumpto, bool nft_goto, void *data) { @@ -690,5 +683,5 @@ struct nft_family_ops nft_family_ops_arp = { .rule_to_cs = nft_arp_rule_to_cs, .clear_cs = nft_clear_iptables_command_state, .rule_find = nft_arp_rule_find, - .parse_target = nft_arp_parse_target, + .parse_target = nft_ipv46_parse_target, }; |