--- src/sys/netinet6/in6.c 2005/01/06 09:14:13 1.11 +++ src/sys/netinet6/in6.c 2005/01/06 17:59:32 1.12 @@ -223,7 +223,7 @@ in6_ifaddloop(struct ifaddr *ifa) struct rtentry *rt; /* If there is no loopback entry, allocate one. */ - rt = rtlookup(ifa->ifa_addr, 0, 0); + rt = rtpurelookup(ifa->ifa_addr); if (rt == NULL || !(rt->rt_flags & RTF_HOST) || !(rt->rt_ifp->if_flags & IFF_LOOPBACK)) in6_ifloop_request(RTM_ADD, ifa); @@ -275,7 +275,7 @@ in6_ifremloop(struct ifaddr *ifa) * a subnet-router anycast address on an interface attahced * to a shared medium. */ - rt = rtlookup(ifa->ifa_addr, 0, 0); + rt = rtpurelookup(ifa->ifa_addr); if (rt != NULL && (rt->rt_flags & RTF_HOST) && (rt->rt_ifp->if_flags & IFF_LOOPBACK)) { rt->rt_refcnt--;