diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-12-01 14:58:09 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-12-01 14:58:09 +0100 |
commit | 23278bd3b31eff9e1bad5f13e4e8222f9c5602c4 (patch) | |
tree | 7db5f51631a15210173d250eaa2055c77493d158 | |
parent | 4b18a4b1e93a462de63ea2325c54de8530624395 (diff) |
examples: nfacct-get: display pkt and byte counters
-rw-r--r-- | examples/nfacct-get.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nfacct-get.c b/examples/nfacct-get.c index 8ded1f4..2c852d3 100644 --- a/examples/nfacct-get.c +++ b/examples/nfacct-get.c @@ -9,7 +9,7 @@ int main(void) char buf[MNL_SOCKET_BUFFER_SIZE]; struct nlmsghdr *nlh; uint32_t portid, seq; - int ret; + int ret, full = 1; nlh = nfacct_list(buf); seq = nlh->nlmsg_seq = time(NULL); @@ -33,7 +33,7 @@ int main(void) ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); while (ret > 0) { - ret = mnl_cb_run(buf, ret, seq, portid, nfacct_list_cb, NULL); + ret = mnl_cb_run(buf, ret, seq, portid, nfacct_list_cb, &full); if (ret <= 0) break; ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); |