Skip to contentSkip to conversation

Add JSON output formatting to nfacct utility

PATCH In review Harald Welte 2 participants 2 messages Feb 22, 2016 – Feb 29, 2016 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add JSON output formatting to nfacct utility

This is based on the JSON support patch of libnetfilter_acct.

---
 nfacct.8     |  2 ++
 src/nfacct.c | 89 ++++++++++++++++++++++++++++++++++++++++++++----------------
 2 files changed, 68 insertions(+), 23 deletions(-)
nfacct.8 +2 -0
index 0c3249c..bf563ae 100644
@@ -47,6 +47,8 @@ That atomically obtains and resets the counters.
 .TP
 .BI "xml "
 That displays the output in XML format.
+.BI "json "
+That displays the output in JSON format.
 .PP
 .SH SEE ALSO
 .BR iptables (8)
src/nfacct.c +66 -23

172 lines not on this page · raw message

Signature · 1 line
2.7.0
#1 lore raw
Quoted 1 line · Harald Welte

This is based on the JSON support patch of libnetfilter_acct.

Also applied, thanks!