From 48636e1fe6f6d3141de735f9faf4c359938b837c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 29 Oct 2018 12:11:09 +0100 Subject: src: add nft_ctx_output_{get,set}_echo() to nft_ctx_output_{get,set}_flags Add NFT_CTX_OUTPUT_ECHO flag and echo the command that has been send to the kernel. Acked-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- 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 86b68cb8..33cbf0e2 100644 --- a/src/rule.c +++ b/src/rule.c @@ -1388,7 +1388,7 @@ static int do_command_add(struct netlink_ctx *ctx, struct cmd *cmd, bool excl) { uint32_t flags = excl ? NLM_F_EXCL : 0; - if (ctx->nft->output.echo) { + if (nft_output_echo(&ctx->nft->output)) { int ret; ret = cache_update(ctx->nft, cmd->obj, ctx->msgs); @@ -1439,7 +1439,7 @@ static int do_command_insert(struct netlink_ctx *ctx, struct cmd *cmd) { uint32_t flags = 0; - if (ctx->nft->output.echo) { + if (nft_output_echo(&ctx->nft->output)) { int ret; ret = cache_update(ctx->nft, cmd->obj, ctx->msgs); -- cgit v1.2.3