]> git.ipfire.org Git - thirdparty/nftables.git/commit
Solves Bug 1462 - `nft -j list set` does not show counters
authorGopal Yadav <gopunop@gmail.com>
Wed, 7 Oct 2020 14:03:37 +0000 (19:33 +0530)
committerPhil Sutter <phil@nwl.cc>
Thu, 8 Oct 2020 16:57:06 +0000 (18:57 +0200)
commitd63064681a91fdfbd53e1ef07b6a8283f48fedb5
tree15dbc4cb166082d5b0086f8bed9f924a2b067019
parent032c9f745c6daab8c27176a95963b1c32b0a5d12
Solves Bug 1462 - `nft -j list set` does not show counters

Element counters reside in 'stmt' field as counter statement. Append
them to 'elem' object as additional 'counter' property, generated by
counter_stmt_json().

Signed-off-by: Gopal Yadav <gopunop@gmail.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/json.c