netns xfrm: lookup in netns
Pass netns to xfrm_lookup()/__xfrm_lookup(). For that pass netns to flow_cache_lookup() and resolver callback. Take it from socket or netdevice. Stub DECnet to init_net. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cdcbca7c1f
commit
52479b623d
@@ -1466,7 +1466,7 @@ static void mld_sendpack(struct sk_buff *skb)
|
||||
&ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr,
|
||||
skb->dev->ifindex);
|
||||
|
||||
err = xfrm_lookup(&skb->dst, &fl, NULL, 0);
|
||||
err = xfrm_lookup(net, &skb->dst, &fl, NULL, 0);
|
||||
if (err)
|
||||
goto err_out;
|
||||
|
||||
@@ -1831,7 +1831,7 @@ static void igmp6_send(struct in6_addr *addr, struct net_device *dev, int type)
|
||||
&ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr,
|
||||
skb->dev->ifindex);
|
||||
|
||||
err = xfrm_lookup(&skb->dst, &fl, NULL, 0);
|
||||
err = xfrm_lookup(net, &skb->dst, &fl, NULL, 0);
|
||||
if (err)
|
||||
goto err_out;
|
||||
|
||||
|
Reference in New Issue
Block a user