summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-07-19 18:32:02 +0200
committerFlorian Westphal <fw@strlen.de>2018-07-19 23:09:16 +0200
commit34e1e234a937242ebebbe225438b4567ca0c5bd2 (patch)
treecb5496bd62b7b0f15b5cc8cfd535c3a9cc5173e1 /iptables/nft-shared.h
parentde782e891c0988cd38c78df32574d617ed65321f (diff)
xtables: eliminate nft_ipv{4,6}_rule_find()
Both functions just pass their parameters 1:1 to nft_ipv46_rule_find, so replace them by the latter after minor adjustment to match expected callback signature. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index deded06b..e4c021e1 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -176,7 +176,7 @@ 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);
+ void *data);
bool compare_matches(struct xtables_rule_match *mt1, struct xtables_rule_match *mt2);
bool compare_targets(struct xtables_target *tg1, struct xtables_target *tg2);