path: root/net/ipv6/netfilter/ip6table_raw.c
diff options
authorFlorian Westphal <fw@strlen.de>2021-04-21 09:51:09 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-04-26 03:20:47 +0200
commitee177a54413a33fe474d55fabb5f8ff390bb27d7 (patch)
treedf47870ff85ff795d24629489b5ef42a64b10d75 /net/ipv6/netfilter/ip6table_raw.c
parentnetfilter: arp_tables: pass table pointer via nf_hook_ops (diff)
netfilter: ip6_tables: pass table pointer via nf_hook_ops
Same patch as the ip_tables one: removal of all accesses to ip6_tables xt_table pointers. After this patch the struct net xt_table anchors can be removed. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6/netfilter/ip6table_raw.c')
1 files changed, 3 insertions, 6 deletions
diff --git a/net/ipv6/netfilter/ip6table_raw.c b/net/ipv6/netfilter/ip6table_raw.c
index ae3df59f0350..f63c106c521e 100644
--- a/net/ipv6/netfilter/ip6table_raw.c
+++ b/net/ipv6/netfilter/ip6table_raw.c
@@ -40,7 +40,7 @@ static unsigned int
ip6table_raw_hook(void *priv, struct sk_buff *skb,
const struct nf_hook_state *state)
- return ip6t_do_table(skb, state, state->net->ipv6.ip6table_raw);
+ return ip6t_do_table(skb, state, priv);
static struct nf_hook_ops *rawtable_ops __read_mostly;
@@ -57,22 +57,19 @@ static int __net_init ip6table_raw_table_init(struct net *net)
repl = ip6t_alloc_initial_table(table);
if (repl == NULL)
return -ENOMEM;
- ret = ip6t_register_table(net, table, repl, rawtable_ops,
- &net->ipv6.ip6table_raw);
+ ret = ip6t_register_table(net, table, repl, rawtable_ops);
return ret;
static void __net_exit ip6table_raw_net_pre_exit(struct net *net)
- ip6t_unregister_table_pre_exit(net, "raw",
- rawtable_ops);
+ ip6t_unregister_table_pre_exit(net, "raw");
static void __net_exit ip6table_raw_net_exit(struct net *net)
ip6t_unregister_table_exit(net, "raw");
- net->ipv6.ip6table_raw = NULL;
static struct pernet_operations ip6table_raw_net_ops = {