]> git.ipfire.org Git - thirdparty/nftables.git/commit
json: Order output like nft_cmd_expand()
authorPhil Sutter <phil@nwl.cc>
Thu, 7 Mar 2024 17:40:12 +0000 (18:40 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 19 Mar 2024 17:24:47 +0000 (18:24 +0100)
commit38f04196ebef64a6672c55c27a6afe9af811c8f7
treea27fa2069a0bb6a6052874ba4e79cc5703147e08
parent3a9f29e217268c03d2b1c965f64abe10bec1a6a0
json: Order output like nft_cmd_expand()

Print empty chain add commands early in list so following verdict maps
and rules referring to them won't cause spurious errors when loading the
resulting ruleset dump.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/json.c