From 7dc64022bb8dfecb737fbf4aa02e6464b80e2eae Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 20 Aug 2019 19:53:13 +0200 Subject: nft: family_ops: Pass nft_handle to 'print_rule' callback Prepare for 'rule_to_cs' callback to receive nft_handle pointer so it is able to access cache for set lookups. Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso --- iptables/nft-ipv6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iptables/nft-ipv6.c') diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 0e2c4a29..56236bff 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -187,8 +187,8 @@ static void nft_ipv6_parse_immediate(const char *jumpto, bool nft_goto, cs->fw6.ipv6.flags |= IP6T_F_GOTO; } -static void nft_ipv6_print_rule(struct nftnl_rule *r, unsigned int num, - unsigned int format) +static void nft_ipv6_print_rule(struct nft_handle *h, struct nftnl_rule *r, + unsigned int num, unsigned int format) { struct iptables_command_state cs = {}; -- cgit v1.2.3