summaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-08-13 23:13:02 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-08-18 00:38:23 +0200
commitaca300183ed4f723837f6619facff0890c46d313 (patch)
tree94d4faf433a58166d86885571504f636f7d67f95 /include/linux/netfilter
parent2497b84625466dc57b8c3a40cd41a659fe04cca6 (diff)
downloadtalos-op-linux-aca300183ed4f723837f6619facff0890c46d313.tar.gz
talos-op-linux-aca300183ed4f723837f6619facff0890c46d313.zip
netfilter: nfnetlink_acct: report overquota to the right netns
We should report the over quota message to the right net namespace instead of the init netns. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r--include/linux/netfilter/nfnetlink_acct.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netfilter/nfnetlink_acct.h b/include/linux/netfilter/nfnetlink_acct.h
index 80ca889b164e..664da0048625 100644
--- a/include/linux/netfilter/nfnetlink_acct.h
+++ b/include/linux/netfilter/nfnetlink_acct.h
@@ -15,6 +15,6 @@ 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);
+int nfnl_acct_overquota(struct net *net, const struct sk_buff *skb,
+ struct nf_acct *nfacct);
#endif /* _NFNL_ACCT_H */
OpenPOWER on IntegriCloud