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/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/netlink.c') 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; -- cgit v1.2.3