From 8810a28d381580b8f9cce393481e83faf4f43f6e Mon Sep 17 00:00:00 2001 From: Duncan Roe Date: Thu, 26 Apr 2018 09:23:49 +1000 Subject: src: fix --debug mnl not producing output cache_update() needs to accept the full debug mask instead of a boolean of NFT_DEBUG_NETLINK, because called functions may wish to check other bits (NFT_DEBUG_MNL in particular). Signed-off-by: Duncan Roe Signed-off-by: Florian Westphal --- include/rule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/rule.h b/include/rule.h index 86f72814..ee22cf21 100644 --- a/include/rule.h +++ b/include/rule.h @@ -552,7 +552,7 @@ struct netlink_ctx; extern int do_command(struct netlink_ctx *ctx, struct cmd *cmd); extern int cache_update(struct mnl_socket *nf_sock, struct nft_cache *cache, - enum cmd_ops cmd, struct list_head *msgs, bool debug, + enum cmd_ops cmd, struct list_head *msgs, unsigned int debug_flag, struct output_ctx *octx); extern void cache_flush(struct list_head *table_list); extern void cache_release(struct nft_cache *cache); -- cgit v1.2.3