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 --- src/rule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index e0e06c52..f8a27570 100644 --- a/src/rule.c +++ b/src/rule.c @@ -143,7 +143,7 @@ static int cache_init(struct netlink_ctx *ctx, enum cmd_ops cmd) } 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_mask, struct output_ctx *octx) { uint16_t genid; @@ -153,7 +153,7 @@ int cache_update(struct mnl_socket *nf_sock, struct nft_cache *cache, .nf_sock = nf_sock, .cache = cache, .msgs = msgs, - .debug_mask = debug ? NFT_DEBUG_NETLINK : 0, + .debug_mask = debug_mask, .octx = octx, }; -- cgit v1.2.3