netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libnetfilter_acct.c File Reference
#include "internal.h"
#include <time.h>
#include <endian.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <libmnl/libmnl.h>
#include <linux/netfilter/nfnetlink.h>
#include <linux/netfilter/nfnetlink_acct.h>
#include <libnetfilter_acct/libnetfilter_acct.h>
Include dependency graph for libnetfilter_acct.c:

Data Structures

struct  nfacct
 

Macros

#define BUFFER_SIZE(ret, size, rem, offset)
 

Functions

struct nfacctnfacct_alloc (void)
 nfacct_alloc - allocate a new accounting object More...
 
 EXPORT_SYMBOL (nfacct_alloc)
 
void nfacct_free (struct nfacct *nfacct)
 nfacct_free - release one accounting object More...
 
 EXPORT_SYMBOL (nfacct_free)
 
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...
 
 EXPORT_SYMBOL (nfacct_attr_set)
 
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...
 
 EXPORT_SYMBOL (nfacct_attr_set_str)
 
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...
 
 EXPORT_SYMBOL (nfacct_attr_set_u64)
 
void nfacct_attr_unset (struct nfacct *nfacct, enum nfacct_attr_type type)
 nfacct_attr_unset - unset one attribute the accounting object More...
 
 EXPORT_SYMBOL (nfacct_attr_unset)
 
const void * nfacct_attr_get (struct nfacct *nfacct, enum nfacct_attr_type type)
 nfacct_attr_get - get one attribute the accounting object More...
 
 EXPORT_SYMBOL (nfacct_attr_get)
 
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...
 
 EXPORT_SYMBOL (nfacct_attr_get_str)
 
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...
 
 EXPORT_SYMBOL (nfacct_attr_get_u64)
 
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...
 
 EXPORT_SYMBOL (nfacct_snprintf)
 
struct nlmsghdrnfacct_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...
 
 EXPORT_SYMBOL (nfacct_nlmsg_build_hdr)
 
void nfacct_nlmsg_build_payload (struct nlmsghdr *nlh, struct nfacct *nfacct)
 nfacct_nlmsg_build_payload - build payload from accounting object More...
 
 EXPORT_SYMBOL (nfacct_nlmsg_build_payload)
 
int nfacct_nlmsg_parse_payload (const struct nlmsghdr *nlh, struct nfacct *nfacct)
 nfacct_nlmsg_parse_payload - set accounting object attributes from message More...
 
 EXPORT_SYMBOL (nfacct_nlmsg_parse_payload)