From e7b6180fcf9061852a06f6d98e7618f44fd0eeec Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 7 May 2020 18:53:47 +0200 Subject: 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 --- iptables/nft-ipv4.c | 1 - 1 file changed, 1 deletion(-) (limited to 'iptables/nft-ipv4.c') diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c index 69691fe2..ba789da0 100644 --- a/iptables/nft-ipv4.c +++ b/iptables/nft-ipv4.c @@ -457,6 +457,5 @@ struct nft_family_ops nft_family_ops_ipv4 = { .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_ipv4_xlate, }; -- cgit v1.2.3