diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2018-04-26 09:23:49 +1000 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-04-26 01:34:45 +0200 |
commit | 8810a28d381580b8f9cce393481e83faf4f43f6e (patch) | |
tree | e043713a91af0de6c0a4d7edd7c979283fb7547a /include/rule.h | |
parent | 45172efadbedee2b2dedc1e771046cca7edb0111 (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 <duncan_roe@optusnet.com.au>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/rule.h')
-rw-r--r-- | include/rule.h | 2 |
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); |