[NETNS][IPV6] route6 - Pass the network namespace parameter to rt6_lookup
Add a network namespace parameter to rt6_lookup(). Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Benjamin Thery <benjamin.thery@bull.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cdb1876192
commit
606a2b4862
@@ -101,7 +101,7 @@ int ipv6_sock_ac_join(struct sock *sk, int ifindex, struct in6_addr *addr)
|
||||
if (ifindex == 0) {
|
||||
struct rt6_info *rt;
|
||||
|
||||
rt = rt6_lookup(addr, NULL, 0, 0);
|
||||
rt = rt6_lookup(&init_net, addr, NULL, 0, 0);
|
||||
if (rt) {
|
||||
dev = rt->rt6i_dev;
|
||||
dev_hold(dev);
|
||||
|
Reference in New Issue
Block a user