aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_counter.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-03-08 16:48:43 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-03-13 13:42:00 +0100
commit84fba05511c8e0e1a6e6c8ec2c3c85616c39a8c1 (patch)
treef466214811e3a0002a7ca3e4b23a8f1d5c43f72f /net/netfilter/nft_counter.c
parentnetfilter: nf_reject: remove unused variable (diff)
downloadlinux-dev-84fba05511c8e0e1a6e6c8ec2c3c85616c39a8c1.tar.xz
linux-dev-84fba05511c8e0e1a6e6c8ec2c3c85616c39a8c1.zip
netfilter: provide nft_ctx in object init function
this is needed by the upcoming ct helper object type -- we'd like to be able use the table family (ip, ip6, inet) to figure out which helper has to be requested. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_counter.c')
-rw-r--r--net/netfilter/nft_counter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nft_counter.c b/net/netfilter/nft_counter.c
index 7f8422213341..67a710ebde09 100644
--- a/net/netfilter/nft_counter.c
+++ b/net/netfilter/nft_counter.c
@@ -82,7 +82,8 @@ static int nft_counter_do_init(const struct nlattr * const tb[],
return 0;
}
-static int nft_counter_obj_init(const struct nlattr * const tb[],
+static int nft_counter_obj_init(const struct nft_ctx *ctx,
+ const struct nlattr * const tb[],
struct nft_object *obj)
{
struct nft_counter_percpu_priv *priv = nft_obj_data(obj);