diff options
author | Phil Sutter <phil@nwl.cc> | 2020-05-07 18:53:47 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-05-18 17:40:13 +0200 |
commit | e7b6180fcf9061852a06f6d98e7618f44fd0eeec (patch) | |
tree | 3c03880309951d216dfb8d23fe8cd6a3875b583f /iptables/nft-ipv6.c | |
parent | 3e09bd1888575cfec136574d2b0e810ba33f1cfb (diff) |
nft: Merge nft_*_rule_find() functions
Both ebtables and arptables are fine with using nft_ipv46_rule_find()
instead of their own implementations. Take the chance and move the
former into nft.c as a static helper since it is used in a single place,
only. Then get rid of the callback from family_ops.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r-- | iptables/nft-ipv6.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 76f2613d..84bcf1c5 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -409,6 +409,5 @@ struct nft_family_ops nft_family_ops_ipv6 = { .parse_target = nft_ipv46_parse_target, .rule_to_cs = nft_rule_to_iptables_command_state, .clear_cs = nft_clear_iptables_command_state, - .rule_find = nft_ipv46_rule_find, .xlate = nft_ipv6_xlate, }; |