]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Merge nft_*_rule_find() functions
authorPhil Sutter <phil@nwl.cc>
Thu, 7 May 2020 16:53:47 +0000 (18:53 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 18 May 2020 15:40:13 +0000 (17:40 +0200)
commite7b6180fcf9061852a06f6d98e7618f44fd0eeec
tree3c03880309951d216dfb8d23fe8cd6a3875b583f
parent3e09bd1888575cfec136574d2b0e810ba33f1cfb
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>
iptables/nft-arp.c
iptables/nft-bridge.c
iptables/nft-ipv4.c
iptables/nft-ipv6.c
iptables/nft-shared.c
iptables/nft-shared.h
iptables/nft.c