summaryrefslogtreecommitdiffstats
path: root/src/netlink.c
diff options
context:
space:
mode:
authorDuncan Roe <duncan_roe@optusnet.com.au>2018-04-26 09:23:49 +1000
committerFlorian Westphal <fw@strlen.de>2018-04-26 01:34:45 +0200
commit8810a28d381580b8f9cce393481e83faf4f43f6e (patch)
treee043713a91af0de6c0a4d7edd7c979283fb7547a /src/netlink.c
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 <duncan_roe@optusnet.com.au> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c
index 75c371dc..5fb42074 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -478,7 +478,7 @@ int netlink_replace_rule_batch(struct netlink_ctx *ctx, const struct cmd *cmd)
if (ctx->octx->echo) {
err = cache_update(ctx->nf_sock, ctx->cache,
CMD_INVALID, ctx->msgs,
- ctx->debug_mask & NFT_DEBUG_NETLINK, ctx->octx);
+ ctx->debug_mask, ctx->octx);
if (err < 0)
return err;