From 57f0f512b273f60d52568b8c6b77e17f5636edc0 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 5 Aug 2015 17:04:01 -0300 Subject: Initial import --- include/linux/netfilter/nfnetlink_acct.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/linux/netfilter/nfnetlink_acct.h (limited to 'include/linux/netfilter/nfnetlink_acct.h') diff --git a/include/linux/netfilter/nfnetlink_acct.h b/include/linux/netfilter/nfnetlink_acct.h new file mode 100644 index 000000000..6ec975748 --- /dev/null +++ b/include/linux/netfilter/nfnetlink_acct.h @@ -0,0 +1,19 @@ +#ifndef _NFNL_ACCT_H_ +#define _NFNL_ACCT_H_ + +#include + +enum { + NFACCT_NO_QUOTA = -1, + NFACCT_UNDERQUOTA, + NFACCT_OVERQUOTA, +}; + +struct nf_acct; + +struct nf_acct *nfnl_acct_find_get(const char *filter_name); +void nfnl_acct_put(struct nf_acct *acct); +void nfnl_acct_update(const struct sk_buff *skb, struct nf_acct *nfacct); +extern int nfnl_acct_overquota(const struct sk_buff *skb, + struct nf_acct *nfacct); +#endif /* _NFNL_ACCT_H */ -- cgit v1.2.3-54-g00ecf