diff options
author | Phil Sutter <phil@nwl.cc> | 2019-08-20 21:41:12 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-11-25 23:30:56 +0100 |
commit | 1e8ef6a5847549af6fa2edc4fd642cf259ef2ba1 (patch) | |
tree | 0595a523a02a2c06dbb3d4a2a17735e385080607 /iptables/nft-ipv6.c | |
parent | 7dc64022bb8dfecb737fbf4aa02e6464b80e2eae (diff) |
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>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r-- | iptables/nft-ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 56236bff..d01491bf 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -192,7 +192,7 @@ static void nft_ipv6_print_rule(struct nft_handle *h, struct nftnl_rule *r, { struct iptables_command_state cs = {}; - nft_rule_to_iptables_command_state(r, &cs); + nft_rule_to_iptables_command_state(h, r, &cs); print_rule_details(&cs, cs.jumpto, cs.fw6.ipv6.flags, cs.fw6.ipv6.invflags, cs.fw6.ipv6.proto, |