path: root/include/rule.h
diff options
authorDuncan Roe <>2018-04-26 09:23:49 +1000
committerFlorian Westphal <>2018-04-26 01:34:45 +0200
commit8810a28d381580b8f9cce393481e83faf4f43f6e (patch)
treee043713a91af0de6c0a4d7edd7c979283fb7547a /include/rule.h
parent45172efadbedee2b2dedc1e771046cca7edb0111 (diff)
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 <>
Diffstat (limited to 'include/rule.h')
1 files changed, 1 insertions, 1 deletions
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);