blob: 5a162b3d32c8e42032afa80ecf867e8ca9a75b0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef _LIBNETFILTER_ACCT_H_
#define _LIBNETFILTER_ACCT_H_
#include <sys/types.h>
#include <linux/netfilter/nfnetlink_acct.h>
struct nfacct {
char name[NFACCT_NAME_MAX];
uint64_t pkts;
uint64_t bytes;
};
struct nlmsghdr *nfacct_add(char *buf, struct nfacct *nfacct);
struct nlmsghdr *nfacct_list(char *buf);
int nfacct_list_cb(const struct nlmsghdr *nlh, void *data);
struct nlmsghdr *nfacct_flush(char *buf);
struct nlmsghdr *nfacct_delete(char *buf, const char *filter_name);
#endif
|