]> git.ipfire.org Git - thirdparty/nftables.git/commit
json: add flow statement json export + parser
authorFlorian Westphal <fw@strlen.de>
Mon, 7 Feb 2022 12:03:20 +0000 (13:03 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 7 Feb 2022 13:56:26 +0000 (14:56 +0100)
commit160d44c91113849b9c09f6bbad159e10ded1ca54
tree3658e1284bf03294a9ebf4c71d5d261f8fa551c3
parent425a27dbd22d12574cedf9b67abc5fd38771fddb
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>
include/json.h
src/ct.c
src/json.c
src/parser_json.c