]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
nfacct: add variable to not zero counter after read
authorEric Leblond <eric@regit.org>
Wed, 1 Aug 2012 11:27:12 +0000 (11:27 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Aug 2012 09:21:59 +0000 (11:21 +0200)
commit3f4b3658f2323af1e4335186985e6608b49ac9ef
treeb997c4d0c9fe062af73e74cd6e5a91c6c152b12b
parent3d83e7db437e264b8066da55b7120b795320f0d7
nfacct: add variable to not zero counter after read

The default nfacct input plugin zeroes counter after each read. This
is a limitation as other software can't use the counter at the same
time as ulogd2.

This patch adds the zerocounter variable to the NFACCT input plugin.
If set to zero, the counters are not zeroed.

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
input/sum/ulogd_inpflow_NFACCT.c
ulogd.conf.in