]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
arptables: Use the shared nft_ipv46_parse_target()
authorPhil Sutter <phil@nwl.cc>
Mon, 24 Sep 2018 17:25:25 +0000 (19:25 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 25 Sep 2018 14:26:30 +0000 (16:26 +0200)
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>
iptables/nft-arp.c

index a2109c608670de5641a4fbd17d8a2705e475096d..bd78a8669bb9ae524be7c0a6ac332f6af1b6c486 100644 (file)
@@ -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,
 };