Translate binop representation to a list-based one, so nft prints "ct event destroy,new" instead of 'ct event destroy|new'. Signed-off-by: Florian Westphal <fw@xxxxxxxxx> --- src/netlink_delinearize.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c index b355eff47222..3ee07c0a1306 100644 --- a/src/netlink_delinearize.c +++ b/src/netlink_delinearize.c @@ -2205,8 +2205,13 @@ static void rule_parse_postprocess(struct netlink_parse_ctx *ctx, struct rule *r expr_postprocess(&rctx, &stmt->meta.expr); break; case STMT_CT: - if (stmt->ct.expr != NULL) + if (stmt->ct.expr != NULL) { expr_postprocess(&rctx, &stmt->ct.expr); + + if (stmt->ct.expr->ops->type == EXPR_BINOP) + stmt->ct.expr = binop_tree_to_list(NULL, + stmt->ct.expr); + } break; case STMT_NAT: if (stmt->nat.addr != NULL) -- 2.13.0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html