From de782e891c0988cd38c78df32574d617ed65321f Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 19 Jul 2018 18:32:01 +0200 Subject: xtables: merge nft_ipv{4,6}_parse_target() Both functions are identical, replace them by a common one in nft-shared.c. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft-shared.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/nft-shared.h') diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 8172c873..deded06b 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -174,6 +174,7 @@ void save_matches_and_target(struct xtables_rule_match *m, struct nft_family_ops *nft_family_ops_lookup(int family); struct nft_handle; +void nft_ipv46_parse_target(struct xtables_target *t, void *data); bool nft_ipv46_rule_find(struct nft_family_ops *ops, struct nftnl_rule *r, struct iptables_command_state *cs); -- cgit v1.2.3