Skip to content

Commit

Permalink
netfilter: use correct namespace in ip6table_security
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@parallels.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Jul 8, 2008
1 parent 6ba33ac commit d278931
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/ipv6/netfilter/ip6table_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ip6t_local_in_hook(unsigned int hook,
int (*okfn)(struct sk_buff *))
{
return ip6t_do_table(skb, hook, in, out,
init_net.ipv6.ip6table_security);
nf_local_in_net(in, out)->ipv6.ip6table_security);
}

static unsigned int
Expand All @@ -83,7 +83,7 @@ ip6t_forward_hook(unsigned int hook,
int (*okfn)(struct sk_buff *))
{
return ip6t_do_table(skb, hook, in, out,
init_net.ipv6.ip6table_security);
nf_forward_net(in, out)->ipv6.ip6table_security);
}

static unsigned int
Expand All @@ -95,7 +95,7 @@ ip6t_local_out_hook(unsigned int hook,
{
/* TBD: handle short packets via raw socket */
return ip6t_do_table(skb, hook, in, out,
init_net.ipv6.ip6table_security);
nf_local_out_net(in, out)->ipv6.ip6table_security);
}

static struct nf_hook_ops ip6t_ops[] __read_mostly = {
Expand Down

0 comments on commit d278931

Please sign in to comment.