summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* build: add missing LIBMNL_CFLAGS to compilation processJan Engelhardt2011-12-291-1/+1
| | | | | Otherwise, the preprocessor may fail to find libmnl if it is not in a standard-searched directory.
* Add examples/.gitignoreJan Engelhardt2011-12-291-0/+3
|
* Update .gitignoreJan Engelhardt2011-12-291-3/+3
| | | | Only ignore these paths if they are a directory.
* build: remove unnecessary AC_EXEEXTJan Engelhardt2011-12-291-1/+0
| | | | ${EXEEXT} is nowhere used in Makefiles.
* build: enable automake warningsJan Engelhardt2011-12-291-1/+2
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* update .gitignore filePablo Neira Ayuso2011-12-291-5/+1
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* build: update configure.ac and gcc4_visibility.m4Pablo Neira Ayuso2011-12-292-4/+6
| | | | | | | | | | This patch includes the recent changes that Jan proposed for other library. Also, this patch relaxes the libmnl dependency to >= 1.0.0 (previously it checked for 1.0.1, not really required). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* update README filePablo Neira Ayuso2011-12-291-22/+16
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* add COPYING file and other licensing stuffPablo Neira Ayuso2011-12-295-1/+506
| | | | | | | | | License is LGPLv2.1+, fix header of libnetfilter_acct.c which tells LGPLv2 or any later (mind the missing .1 after v2). Examples of this library are in the public domain. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: add library documentation in doxygenPablo Neira Ayuso2011-12-293-25/+342
| | | | | | This patch adds the library documentation in doxygen format. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: major API redesignPablo Neira Ayuso2011-12-296-102/+333
| | | | | | | | | | | | | | | 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>
* examples: nfacct-get allows to zero counters with `-z' optionPablo Neira Ayuso2011-12-231-2/+12
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* extend nfacct_list to allow to zero countersPablo Neira Ayuso2011-12-142-3/+7
|
* examples: add nfacct-del to delete accounting objectsPablo Neira Ayuso2011-12-142-2/+5
| | | | This also fixes one wrong flag in nfacct_delete(...)
* add NFNL_MSG_ACCT_GET_CTRZEROPablo Neira Ayuso2011-12-141-0/+1
|
* add README filePablo Neira Ayuso2011-12-021-0/+61
|
* examples: nfacct-add: initialize counters, otherwise we add garbagePablo Neira Ayuso2011-12-021-1/+1
|
* fix endianness in 64-bits packet and bytes countersPablo Neira Ayuso2011-12-021-4/+7
| | | | | In nfnetlink, the policy is that attributes are in network byte order.
* examples: nfacct-get: display pkt and byte countersPablo Neira Ayuso2011-12-011-2/+2
|
* update headers to use new nfnetlink subsysPablo Neira Ayuso2011-12-013-5/+97
|
* add missing Makefile.am filesPablo Neira Ayuso2011-10-172-0/+2
|
* add missing .gitignorePablo Neira Ayuso2011-10-171-0/+23
|
* src: improve nfacct-add examplePablo Neira Ayuso2011-10-171-6/+10
| | | | Now it takes the name of the accouting zone as argument.
* fix crash if no data pointer is passed to nfacct_list_cbPablo Neira Ayuso2011-10-161-1/+1
|
* intial import of libnetfilter_acctPablo Neira Ayuso2011-10-1617-0/+461