Searched refs:bestRoute (Results 1 – 3 of 3) sorted by relevance
446 RouteInfo bestRoute = null; in selectBestRoute()450 if ((bestRoute != null) && in selectBestRoute()451 (bestRoute.mDestination.getPrefixLength() >= in selectBestRoute()455 if (route.matches(dest)) bestRoute = route; in selectBestRoute()458 return bestRoute; in selectBestRoute()
1230 final RouteInfo bestRoute = RouteInfo.selectBestRoute(allRoutes, ip); in isReachable() local1231 if (bestRoute == null) { in isReachable()1239 return hasIpv4AddressOnInterface(bestRoute.getInterface()); in isReachable()1250 return (!bestRoute.hasGateway() || hasGlobalIpv6Address()); in isReachable()
1735 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr); in addLegacyRouteToHost() local1736 if (bestRoute == null) { in addLegacyRouteToHost()1737 bestRoute = RouteInfo.makeHostRoute(addr, lp.getInterfaceName()); in addLegacyRouteToHost()1739 String iface = bestRoute.getInterface(); in addLegacyRouteToHost()1740 if (bestRoute.getGateway().equals(addr)) { in addLegacyRouteToHost()1742 bestRoute = RouteInfo.makeHostRoute(addr, iface); in addLegacyRouteToHost()1746 bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface); in addLegacyRouteToHost()1749 if (DBG) log("Adding legacy route " + bestRoute + in addLegacyRouteToHost()1752 mNMS.addLegacyRouteForNetId(netId, bestRoute, uid); in addLegacyRouteToHost()