diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/expression.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/expression.c b/src/expression.c index c6be0001..4c0874fe 100644 --- a/src/expression.c +++ b/src/expression.c @@ -1358,7 +1358,12 @@ struct expr *set_elem_catchall_expr_alloc(const struct location *loc) static void flagcmp_expr_print(const struct expr *expr, struct output_ctx *octx) { expr_print(expr->flagcmp.expr, octx); - nft_print(octx, " "); + + if (expr->op == OP_NEQ) + nft_print(octx, " != "); + else + nft_print(octx, " "); + expr_print(expr->flagcmp.value, octx); nft_print(octx, " / "); expr_print(expr->flagcmp.mask, octx); |