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@xxxxxxxxx> --- src/libnetfilter_acct.c | 4 ++-- 1 file 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) { -- 1.9.rc1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html