[NETNS][IPV6] anycast - handle several network namespace

Make use of the network namespace information to have this protocol to
handle several network namespace.

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:
Daniel Lezcano
2008-03-26 16:52:32 -07:00
committed by David S. Miller
parent a233352506
commit 6ab57e7e7f
5 changed files with 37 additions and 35 deletions

View File

@@ -773,7 +773,7 @@ static void ndisc_recv_ns(struct sk_buff *skb)
return;
}
if (ipv6_chk_acast_addr(dev, &msg->target) ||
if (ipv6_chk_acast_addr(dev_net(dev), dev, &msg->target) ||
(idev->cnf.forwarding &&
(ipv6_devconf.proxy_ndp || idev->cnf.proxy_ndp) &&
(pneigh = pneigh_lookup(&nd_tbl, dev_net(dev),