diff options
Diffstat (limited to 'src/statement.c')
-rw-r--r-- | src/statement.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/statement.c b/src/statement.c index 039ca943..98e56844 100644 --- a/src/statement.c +++ b/src/statement.c @@ -630,6 +630,12 @@ static void set_stmt_print(const struct stmt *stmt, struct output_ctx *octx) expr_print(stmt->set.set, octx); nft_print(octx, " { "); expr_print(stmt->set.key, octx); + if (stmt->set.stmt) { + nft_print(octx, " "); + octx->stateless++; + stmt_print(stmt->set.stmt, octx); + octx->stateless--; + } nft_print(octx, " }"); } @@ -658,6 +664,12 @@ static void map_stmt_print(const struct stmt *stmt, struct output_ctx *octx) expr_print(stmt->map.set, octx); nft_print(octx, " { "); expr_print(stmt->map.key, octx); + if (stmt->map.stmt) { + nft_print(octx, " "); + octx->stateless++; + stmt_print(stmt->map.stmt, octx); + octx->stateless--; + } nft_print(octx, " : "); expr_print(stmt->map.data, octx); nft_print(octx, " }"); |