Add JSON output formatting to nfacct utility
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
@@ -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
Pablo Neira Ayuso
maintainerQuoted 1 line · Harald Welte
This is based on the JSON support patch of
libnetfilter_acct.
Also applied, thanks!