diff options
Diffstat (limited to 'net/ipv6/netfilter/ip6table_raw.c')
-rw-r--r-- | net/ipv6/netfilter/ip6table_raw.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net/ipv6/netfilter/ip6table_raw.c b/net/ipv6/netfilter/ip6table_raw.c index 985e27cf1e0..5451a36fbc2 100644 --- a/net/ipv6/netfilter/ip6table_raw.c +++ b/net/ipv6/netfilter/ip6table_raw.c | |||
@@ -48,13 +48,9 @@ ip6table_raw_hook(unsigned int hook, struct sk_buff *skb, | |||
48 | const struct net_device *in, const struct net_device *out, | 48 | const struct net_device *in, const struct net_device *out, |
49 | int (*okfn)(struct sk_buff *)) | 49 | int (*okfn)(struct sk_buff *)) |
50 | { | 50 | { |
51 | if (hook == NF_INET_PRE_ROUTING) | 51 | const struct net *net = dev_net((in != NULL) ? in : out); |
52 | return ip6t_do_table(skb, hook, in, out, | ||
53 | dev_net(in)->ipv6.ip6table_raw); | ||
54 | 52 | ||
55 | /* OUTPUT: */ | 53 | return ip6t_do_table(skb, hook, in, out, net->ipv6.ip6table_raw); |
56 | return ip6t_do_table(skb, hook, in, out, | ||
57 | dev_net(out)->ipv6.ip6table_raw); | ||
58 | } | 54 | } |
59 | 55 | ||
60 | static struct nf_hook_ops ip6t_ops[] __read_mostly = { | 56 | static struct nf_hook_ops ip6t_ops[] __read_mostly = { |