diff options
author | Elise Lennion <elise.lennion@gmail.com> | 2017-01-18 21:06:47 -0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-01-23 14:26:16 +0100 |
commit | 1967b4f67cfbb64d12fc4953db35e3d7aa5f773e (patch) | |
tree | d7b7c8ee574de41091196622f693f9eab68b73ff /src/statement.c | |
parent | f7a68589c0b3bf2085c9066d99d6ee680c6e6751 (diff) |
src: Honor obligatory stateless printing of flow tables
Always print flow statement as stateless expressions, given that this
just defines the flow table statement instance that is allocated per
entry.
Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Diffstat (limited to 'src/statement.c')
-rw-r--r-- | src/statement.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/statement.c b/src/statement.c index 25bed65f..9cdabbb9 100644 --- a/src/statement.c +++ b/src/statement.c @@ -117,8 +117,13 @@ static void flow_stmt_print(const struct stmt *stmt) printf("{ "); expr_print(stmt->flow.key); printf(" "); + + stateless_output++; stmt_print(stmt->flow.stmt); + stateless_output--; + printf("} "); + } static void flow_stmt_destroy(struct stmt *stmt) |