summaryrefslogtreecommitdiffstats
path: root/iptables/nft-arp.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-08-20 19:53:13 +0200
committerPhil Sutter <phil@nwl.cc>2019-11-25 23:30:54 +0100
commit7dc64022bb8dfecb737fbf4aa02e6464b80e2eae (patch)
tree7f54e0ce34092d83ff29b509017555e02b3425dd /iptables/nft-arp.c
parent01d9357f684e4af8142b77f52529e2e6a5ce159b (diff)
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 <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-arp.c')
-rw-r--r--iptables/nft-arp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c
index 5ad7556c..da22c12d 100644
--- a/iptables/nft-arp.c
+++ b/iptables/nft-arp.c
@@ -582,7 +582,8 @@ nft_arp_save_rule(const void *data, unsigned int format)
}
static void
-nft_arp_print_rule(struct nftnl_rule *r, unsigned int num, unsigned int format)
+nft_arp_print_rule(struct nft_handle *h, struct nftnl_rule *r,
+ unsigned int num, unsigned int format)
{
struct iptables_command_state cs = {};