]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/netfilter/nfnetlink_acct.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / include / linux / netfilter / nfnetlink_acct.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NFNL_ACCT_H_
3 #define _NFNL_ACCT_H_
4
5 #include <uapi/linux/netfilter/nfnetlink_acct.h>
6 #include <net/net_namespace.h>
7
8 enum {
9 NFACCT_NO_QUOTA = -1,
10 NFACCT_UNDERQUOTA,
11 NFACCT_OVERQUOTA,
12 };
13
14 struct nf_acct;
15
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, const struct sk_buff *skb,
20 struct nf_acct *nfacct);
21 #endif /* _NFNL_ACCT_H */