[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
@@ -339,11 +339,11 @@ out:
|
||||
skb_reset_network_header(skb2);
|
||||
|
||||
/* Try to guess incoming interface */
|
||||
rt6i = rt6_lookup(&iph6->saddr, NULL, NULL, 0);
|
||||
rt6i = rt6_lookup(&init_net, &iph6->saddr, NULL, NULL, 0);
|
||||
if (rt6i && rt6i->rt6i_dev) {
|
||||
skb2->dev = rt6i->rt6i_dev;
|
||||
|
||||
rt6i = rt6_lookup(&iph6->daddr, &iph6->saddr, NULL, 0);
|
||||
rt6i = rt6_lookup(&init_net, &iph6->daddr, &iph6->saddr, NULL, 0);
|
||||
|
||||
if (rt6i && rt6i->rt6i_dev && rt6i->rt6i_dev->type == ARPHRD_SIT) {
|
||||
struct ip_tunnel *t = netdev_priv(rt6i->rt6i_dev);
|
||||
|
||||
Reference in New Issue
Block a user