summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* examples: fix nfacct-get examplelibnetfilter_acct-1.0.0Pablo Neira Ayuso2012-03-271-1/+2
| | | | | | I forgot to adapt it to use the new nfacct_snprintf API. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Add examples/.gitignoreJan Engelhardt2011-12-291-0/+3
|
* add COPYING file and other licensing stuffPablo Neira Ayuso2011-12-293-0/+3
| | | | | | | | | 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: major API redesignPablo Neira Ayuso2011-12-293-9/+114
| | | | | | | | | | | | | | | 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>
* 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>
* examples: add nfacct-del to delete accounting objectsPablo Neira Ayuso2011-12-141-1/+4
| | | | This also fixes one wrong flag in nfacct_delete(...)
* examples: nfacct-add: initialize counters, otherwise we add garbagePablo Neira Ayuso2011-12-021-1/+1
|
* examples: nfacct-get: display pkt and byte countersPablo Neira Ayuso2011-12-011-2/+2
|
* src: improve nfacct-add examplePablo Neira Ayuso2011-10-171-6/+10
| | | | Now it takes the name of the accouting zone as argument.
* intial import of libnetfilter_acctPablo Neira Ayuso2011-10-163-0/+110