summaryrefslogtreecommitdiffstats
path: root/examples/nfacct-add.c
Commit message (Collapse)AuthorAgeFilesLines
* src: major API redesignPablo Neira Ayuso2011-12-291-6/+16
| | | | | | | | | | | | | | | 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-add: initialize counters, otherwise we add garbagePablo Neira Ayuso2011-12-021-1/+1
|
* 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-161-0/+53