summaryrefslogtreecommitdiffstats
path: root/net/ipv6/netfilter/ip6table_mangle.c
diff options
context:
space:
mode:
authorEric W. Biederman2015-09-25 22:07:31 +0200
committerPablo Neira Ayuso2015-09-29 20:21:32 +0200
commit5f5d74d723146c5b97c7318b5851af15b30e3304 (patch)
tree670f2e4cc8eb6cdb8cb72ccc611930af40ce09ba /net/ipv6/netfilter/ip6table_mangle.c
parentipv4: Pass struct net into ip_route_me_harder (diff)
downloadkernel-qcow2-linux-5f5d74d723146c5b97c7318b5851af15b30e3304.tar.gz
kernel-qcow2-linux-5f5d74d723146c5b97c7318b5851af15b30e3304.tar.xz
kernel-qcow2-linux-5f5d74d723146c5b97c7318b5851af15b30e3304.zip
ipv6: Pass struct net into ip6_route_me_harder
Don't make ip6_route_me_harder guess which network namespace it is routing in, pass the network namespace in. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6/netfilter/ip6table_mangle.c')
-rw-r--r--net/ipv6/netfilter/ip6table_mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6table_mangle.c b/net/ipv6/netfilter/ip6table_mangle.c
index 8745b592b2f6..abe278b07932 100644
--- a/net/ipv6/netfilter/ip6table_mangle.c
+++ b/net/ipv6/netfilter/ip6table_mangle.c
@@ -65,7 +65,7 @@ ip6t_mangle_out(struct sk_buff *skb, const struct nf_hook_state *state)
skb->mark != mark ||
ipv6_hdr(skb)->hop_limit != hop_limit ||
flowlabel != *((u_int32_t *)ipv6_hdr(skb)))) {
- err = ip6_route_me_harder(skb);
+ err = ip6_route_me_harder(state->net, skb);
if (err < 0)
ret = NF_DROP_ERR(err);
}