summaryrefslogtreecommitdiffstats
path: root/src/ct.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-02-07 13:03:20 +0100
committerFlorian Westphal <fw@strlen.de>2022-02-07 14:56:26 +0100
commit160d44c91113849b9c09f6bbad159e10ded1ca54 (patch)
tree3658e1284bf03294a9ebf4c71d5d261f8fa551c3 /src/ct.c
parent425a27dbd22d12574cedf9b67abc5fd38771fddb (diff)
json: add flow statement json export + parser
flow statement has no export, its shown as: ".. }, "flow add @ft" ] } }" With this patch: ".. }, {"flow": {"op": "add", "flowtable": "@ft"}}]}}" Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/ct.c')
-rw-r--r--src/ct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ct.c b/src/ct.c
index 60491571..e246d303 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -578,6 +578,7 @@ static const struct stmt_ops flow_offload_stmt_ops = {
.name = "flow_offload",
.print = flow_offload_stmt_print,
.destroy = flow_offload_stmt_destroy,
+ .json = flow_offload_stmt_json,
};
struct stmt *flow_offload_stmt_alloc(const struct location *loc,