#include <stdint.h>#include <linux/netfilter/nfnetlink_acct.h>

Macros | |
| #define | NFACCT_SNPRINTF_F_FULL (1 << 0) |
| #define | NFACCT_SNPRINTF_F_TIME (1 << 1) |
| #define | NFACCT_SNPRINTF_T_PLAIN 0 |
| #define | NFACCT_SNPRINTF_T_XML 1 |
Enumerations | |
| enum | nfacct_attr_type { NFACCT_ATTR_NAME = 0, NFACCT_ATTR_PKTS, NFACCT_ATTR_BYTES, NFACCT_ATTR_FLAGS, NFACCT_ATTR_QUOTA } |
Functions | |
| struct nfacct * | nfacct_alloc (void) |
| nfacct_alloc - allocate a new accounting object More... | |
| void | nfacct_free (struct nfacct *nfacct) |
| nfacct_free - release one accounting object More... | |
| void | nfacct_attr_set (struct nfacct *nfacct, enum nfacct_attr_type type, const void *data) |
| nfacct_attr_set - set one attribute of the accounting object More... | |
| void | nfacct_attr_set_str (struct nfacct *nfacct, enum nfacct_attr_type type, const char *name) |
| nfacct_attr_set_str - set one attribute the accounting object More... | |
| void | nfacct_attr_set_u64 (struct nfacct *nfacct, enum nfacct_attr_type type, uint64_t value) |
| nfacct_attr_set_u64 - set one attribute the accounting object More... | |
| void | nfacct_attr_unset (struct nfacct *nfacct, enum nfacct_attr_type type) |
| nfacct_attr_unset - unset one attribute the accounting object More... | |
| const void * | nfacct_attr_get (struct nfacct *nfacct, enum nfacct_attr_type type) |
| nfacct_attr_get - get one attribute the accounting object More... | |
| const char * | nfacct_attr_get_str (struct nfacct *nfacct, enum nfacct_attr_type type) |
| nfacct_attr_get_str - get one attribute the accounting object More... | |
| uint64_t | nfacct_attr_get_u64 (struct nfacct *nfacct, enum nfacct_attr_type type) |
| nfacct_attr_get_u64 - get one attribute the accounting object More... | |
| struct nlmsghdr * | nfacct_nlmsg_build_hdr (char *buf, uint8_t cmd, uint16_t flags, uint32_t seq) |
| nfacct_nlmsg_build_hdr - build netlink message header for nfacct subsystem More... | |
| void | nfacct_nlmsg_build_payload (struct nlmsghdr *nlh, struct nfacct *nfacct) |
| nfacct_nlmsg_build_payload - build payload from accounting object More... | |
| int | nfacct_nlmsg_parse_payload (const struct nlmsghdr *nlh, struct nfacct *nfacct) |
| nfacct_nlmsg_parse_payload - set accounting object attributes from message More... | |
| int | nfacct_snprintf (char *buf, size_t size, struct nfacct *nfacct, uint16_t type, uint16_t flags) |
| nfacct_snprintf - print accounting object into one buffer More... | |
| #define NFACCT_SNPRINTF_F_FULL (1 << 0) |
| #define NFACCT_SNPRINTF_F_TIME (1 << 1) |
| #define NFACCT_SNPRINTF_T_PLAIN 0 |
Referenced by nfacct_snprintf().
| #define NFACCT_SNPRINTF_T_XML 1 |
Referenced by nfacct_snprintf().
| enum nfacct_attr_type |