]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv6/netfilter/ip6table_nat.c
inet netfilter: Remove hook from ip6t_do_table, arp_do_table, ipt_do_table
[mirror_ubuntu-bionic-kernel.git] / net / ipv6 / netfilter / ip6table_nat.c
index c3a7f7af0ed4d183d00a5f50307f44fa44399460..efa6754c4d06c06f44bafa2346196e22cc10bb3e 100644 (file)
@@ -35,9 +35,7 @@ static unsigned int ip6table_nat_do_chain(const struct nf_hook_ops *ops,
                                          const struct nf_hook_state *state,
                                          struct nf_conn *ct)
 {
-       struct net *net = nf_ct_net(ct);
-
-       return ip6t_do_table(skb, ops->hooknum, state, net->ipv6.ip6table_nat);
+       return ip6t_do_table(skb, state, state->net->ipv6.ip6table_nat);
 }
 
 static unsigned int ip6table_nat_fn(const struct nf_hook_ops *ops,