]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: family_ops: Pass nft_handle to 'rule_to_cs' callback
authorPhil Sutter <phil@nwl.cc>
Tue, 20 Aug 2019 19:41:12 +0000 (21:41 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 25 Nov 2019 22:30:56 +0000 (23:30 +0100)
commit1e8ef6a5847549af6fa2edc4fd642cf259ef2ba1
tree0595a523a02a2c06dbb3d4a2a17735e385080607
parent7dc64022bb8dfecb737fbf4aa02e6464b80e2eae
nft: family_ops: Pass nft_handle to 'rule_to_cs' callback

This is the actual callback used to parse nftables rules. Pass
nft_handle to it so it can access the cache (and possible sets therein).

Having to pass nft_handle to nft_rule_print_save() allows to simplify it
a bit since no family ops lookup has to be done anymore.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
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
iptables/nft.h
iptables/xtables-monitor.c
iptables/xtables-save.c