diff options
author | Eric Leblond <eric@regit.org> | 2014-02-04 00:11:18 +0100 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2014-02-04 00:11:43 +0100 |
commit | e998be28c754d64044faf1e60f38859363106082 (patch) | |
tree | 89ab498150db3aa1f7b18123795fbda8492d3703 | |
parent | 87aa2d6a05c528eb247afc21191f4bd204ab6ca4 (diff) |
xml: fix inversion between pkt and bytes
The nfacct_snprintf_xml used to ouput accounting in XML format
was inverting packet and bytes. This patch restores the correct
order.
Signed-off-by: Eric Leblond <eric@regit.org>
-rw-r--r-- | src/libnetfilter_acct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnetfilter_acct.c b/src/libnetfilter_acct.c index ba89e2d..77f58ce 100644 --- a/src/libnetfilter_acct.c +++ b/src/libnetfilter_acct.c @@ -298,8 +298,8 @@ nfacct_snprintf_xml(char *buf, size_t rem, struct nfacct *nfacct, "<pkts>%.20"PRIu64"</pkts>" "<bytes>%.20"PRIu64"</bytes>", nfacct_attr_get_str(nfacct, NFACCT_ATTR_NAME), - nfacct_attr_get_u64(nfacct, NFACCT_ATTR_BYTES), - nfacct_attr_get_u64(nfacct, NFACCT_ATTR_PKTS)); + nfacct_attr_get_u64(nfacct, NFACCT_ATTR_PKTS), + nfacct_attr_get_u64(nfacct, NFACCT_ATTR_BYTES)); BUFFER_SIZE(ret, size, rem, offset); if (flags & NFACCT_SNPRINTF_F_TIME) { |