summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Extend accounting capabilities to support quotasMathieu Poirier2014-04-283-0/+15
| | | | | | | | | The accounting framework already supports accounting at the quota and byte level. As such it is a natural extention to add a ceiling limit to those metrics. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* include: remove sys/types.hPablo Neira Ayuso2013-06-111-2/+0
| | | | | | | | It is present since the initial import, but it doesn't seem to be useful these days. Reported-by: Thomas Jarosch <thomas.jarosch@intra2net.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* include: use C++ headers in C++ modePablo Neira Ayuso2013-06-071-1/+10
| | | | | Reported-by: Thomas Jarosch <thomas.jarosch@intra2net.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Add include needed for integer types definition.Eric Leblond2012-11-051-0/+1
|
* build: resolve compile abort on RHEL5 #1Jan Engelhardt2012-10-133-56/+70
| | | | | | | | | | [ 24s] In file included from libnetfilter_acct.c:18: [ 24s] ../include/linux/netfilter/nfnetlink.h:4:46: error: linux/netfilter/nfnetlink_compat.h: No such file or directory Slurp in new headers from the kernel du jour (v3.6-10970-g4d7127d). Signed-off-by: Jan Engelhardt <jengelh@inai.de>
* src: NFACCT_SNPRINTF_T_XML flag for nfacct_snprintf to output timePablo Neira Ayuso2012-06-221-1/+2
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nfacct: change prototype of nfacct_snprintf() to support output in XMLPablo Neira Ayuso2012-03-271-1/+4
| | | | | | | | | | | | | | | | This patch adds supports for XML output for nfacct_snprintf(). This also bumps the library current version number and it adds a new version in the symbol map. I decided to do so because, although no official release has happened so far. Many distributors have already decided to provide packages for this. We don't provide the old symbol version for nfacct_snprintf, I think that's too much (given the lifetime of it). But we make sure that we break the binary gracefully in case of version mismatches (not silently, with unexpectable side effects). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: major API redesignPablo Neira Ayuso2011-12-291-9/+27
| | | | | | | | | | | | | | | This patch reworks the initial API. Now it provides functions to: - allocate/release accounting objects. - set/unset/get attributes of accounting objects. - build one netlink message from one accounting object. - parse one netlink message to one accounting object. - print one accounting object into a buffer. Binary layout of nfacct objects are opaque. This is good for extensibility without breaking backward compatibility. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* update nfnetlink_acct.hPablo Neira Ayuso2011-12-231-2/+4
| | | | | | to get it in sync with kernel changes. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* extend nfacct_list to allow to zero countersPablo Neira Ayuso2011-12-141-1/+1
|
* add NFNL_MSG_ACCT_GET_CTRZEROPablo Neira Ayuso2011-12-141-0/+1
|
* update headers to use new nfnetlink subsysPablo Neira Ayuso2011-12-013-5/+97
|
* add missing Makefile.am filesPablo Neira Ayuso2011-10-172-0/+2
|
* intial import of libnetfilter_acctPablo Neira Ayuso2011-10-164-0/+56