]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - 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
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
94139027
PNA
2#ifndef _NFNL_ACCT_H_
3#define _NFNL_ACCT_H_
4
94d0ec58 5#include <uapi/linux/netfilter/nfnetlink_acct.h>
3499abb2 6#include <net/net_namespace.h>
94139027 7
683399ed
MP
8enum {
9 NFACCT_NO_QUOTA = -1,
10 NFACCT_UNDERQUOTA,
11 NFACCT_OVERQUOTA,
12};
94139027
PNA
13
14struct nf_acct;
15
3499abb2 16struct nf_acct *nfnl_acct_find_get(struct net *net, const char *filter_name);
a0f4ecf3
JP
17void nfnl_acct_put(struct nf_acct *acct);
18void nfnl_acct_update(const struct sk_buff *skb, struct nf_acct *nfacct);
aca30018
LZ
19int nfnl_acct_overquota(struct net *net, const struct sk_buff *skb,
20 struct nf_acct *nfacct);
94139027 21#endif /* _NFNL_ACCT_H */