mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Andreas Schultz](/assets/img/avatar_default.png)
- Move the nfnl_acct_list into the network namespace, initialize and destroy it per namespace - Keep track of refcnt on nfacct objects, the old logic does not longer work with a per namespace list - Adjust xt_nfacct to pass the namespace when registring objects Signed-off-by: Andreas Schultz <aschultz@tpip.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
20 lines
529 B
C
20 lines
529 B
C
#ifndef _NFNL_ACCT_H_
|
|
#define _NFNL_ACCT_H_
|
|
|
|
#include <uapi/linux/netfilter/nfnetlink_acct.h>
|
|
#include <net/net_namespace.h>
|
|
|
|
enum {
|
|
NFACCT_NO_QUOTA = -1,
|
|
NFACCT_UNDERQUOTA,
|
|
NFACCT_OVERQUOTA,
|
|
};
|
|
|
|
struct nf_acct;
|
|
|
|
struct nf_acct *nfnl_acct_find_get(struct net *net, 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 */
|