|
@@ -2883,13 +2883,15 @@ void if6_proc_exit(void)
|
|
|
|
|
|
#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE)
|
|
|
/* Check if address is a home address configured on any interface. */
|
|
|
-int ipv6_chk_home_addr(struct in6_addr *addr)
|
|
|
+int ipv6_chk_home_addr(struct net *net, struct in6_addr *addr)
|
|
|
{
|
|
|
int ret = 0;
|
|
|
struct inet6_ifaddr * ifp;
|
|
|
u8 hash = ipv6_addr_hash(addr);
|
|
|
read_lock_bh(&addrconf_hash_lock);
|
|
|
for (ifp = inet6_addr_lst[hash]; ifp; ifp = ifp->lst_next) {
|
|
|
+ if (ifp->idev->dev->nd_net != net)
|
|
|
+ continue;
|
|
|
if (ipv6_addr_cmp(&ifp->addr, addr) == 0 &&
|
|
|
(ifp->flags & IFA_F_HOMEADDRESS)) {
|
|
|
ret = 1;
|