* [PATCH] netfilter: netnsize ip6table_security
@ 2008-06-10 16:48 Alexey Dobriyan
2008-06-11 6:20 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2008-06-10 16:48 UTC (permalink / raw)
To: kaber; +Cc: netfilter-devel, James Morris
Signed-off-by: Alexey Dobriyan <adobriyan@parallels.com>
---
not sure why this code in IPv4 version but not in IPv6
net/ipv6/netfilter/ip6table_security.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/net/ipv6/netfilter/ip6table_security.c
+++ b/net/ipv6/netfilter/ip6table_security.c
@@ -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
@@ -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
@@ -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 = {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-11 6:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 16:48 [PATCH] netfilter: netnsize ip6table_security Alexey Dobriyan
2008-06-11 6:20 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.