Linux 4.19-rc7
[linux-2.6/btrfs-unstable.git] / include / linux / netfilter / nfnetlink_acct.h
blobbeee8bffe49e0dbcaaf972da7156d099116fbc78
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NFNL_ACCT_H_
3 #define _NFNL_ACCT_H_
5 #include <uapi/linux/netfilter/nfnetlink_acct.h>
6 #include <net/net_namespace.h>
8 enum {
9 NFACCT_NO_QUOTA = -1,
10 NFACCT_UNDERQUOTA,
11 NFACCT_OVERQUOTA,
14 struct nf_acct;
16 struct nf_acct *nfnl_acct_find_get(struct net *net, const char *filter_name);
17 void nfnl_acct_put(struct nf_acct *acct);
18 void nfnl_acct_update(const struct sk_buff *skb, struct nf_acct *nfacct);
19 int nfnl_acct_overquota(struct net *net, struct nf_acct *nfacct);
20 #endif /* _NFNL_ACCT_H */