diff options
author | Florian Westphal <fw@strlen.de> | 2017-03-08 16:48:43 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-13 13:42:00 +0100 |
commit | 84fba05511c8e0e1a6e6c8ec2c3c85616c39a8c1 (patch) | |
tree | f466214811e3a0002a7ca3e4b23a8f1d5c43f72f /net/netfilter/nft_counter.c | |
parent | c1183db8853d14df390748aa6baa69734db151aa (diff) | |
download | linux-stable-84fba05511c8e0e1a6e6c8ec2c3c85616c39a8c1.tar.gz linux-stable-84fba05511c8e0e1a6e6c8ec2c3c85616c39a8c1.tar.bz2 linux-stable-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.c | 3 |
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); |