| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
No need to duplicate the same code to validate their size since
they are both unsigned 64-bits integers.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
| |
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
| |
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
|
|
|
| |
To satisfy ulogd2 correct library version checking. Even if there's
no plan to release a new version of the library anytime soon.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
| |
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
| |
I forgot to adapt it to use the new nfacct_snprintf API.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
* Detail how to compile if you get a working copy from the git tree.
* Include licensing terms.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
|
| |
Instead of returning the data even if unset.
Reported-by: Alejandro Castaño del Castillo <alex@wadobo.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
|
| |
Instead of checking is name, packets and bytes are set.
Reported-by: Alejandro Castaño del Castillo <alex@wadobo.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
|
|
|
| |
Now it looks like:
{ pkts = 00000000000000000000, bytes = 00000000000000000000 } = test1;
{ pkts = 00000000000000000000, bytes = 00000000000000000000 } = test2;
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
| |
Otherwise, the preprocessor may fail to find libmnl if it is not in a
standard-searched directory.
|
| |
|
|
|
|
| |
Only ignore these paths if they are a directory.
|
|
|
|
| |
${EXEEXT} is nowhere used in Makefiles.
|
|
|
|
| |
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
|
|
|
|
| |
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
This patch adds the library documentation in doxygen format.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
to get it in sync with kernel changes.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
| |
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
| |
|
|
|
|
| |
This also fixes one wrong flag in nfacct_delete(...)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
In nfnetlink, the policy is that attributes are in network byte
order.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Now it takes the name of the accouting zone as argument.
|
| |
|
|
|