Home
last modified time | relevance | path

Searched refs:bestRoute (Results 1 – 3 of 3) sorted by relevance

/frameworks/libs/net/common/framework/android/net/util/
DNetUtils.java56 RouteInfo bestRoute = null; in selectBestRoute()
60 if ((bestRoute != null) in selectBestRoute()
61 && (bestRoute.getDestination().getPrefixLength() in selectBestRoute()
65 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
68 return bestRoute; in selectBestRoute()
/frameworks/base/core/java/android/net/
DLinkProperties.java1329 final RouteInfo bestRoute = RouteInfo.selectBestRoute(allRoutes, ip); in isReachable() local
1330 if (bestRoute == null) { in isReachable()
1338 return hasIpv4AddressOnInterface(bestRoute.getInterface()); in isReachable()
1349 return (!bestRoute.hasGateway() || hasGlobalIpv6Address()); in isReachable()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1903 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr); in addLegacyRouteToHost() local
1904 if (bestRoute == null) { in addLegacyRouteToHost()
1905 bestRoute = RouteInfo.makeHostRoute(addr, lp.getInterfaceName()); in addLegacyRouteToHost()
1907 String iface = bestRoute.getInterface(); in addLegacyRouteToHost()
1908 if (bestRoute.getGateway().equals(addr)) { in addLegacyRouteToHost()
1910 bestRoute = RouteInfo.makeHostRoute(addr, iface); in addLegacyRouteToHost()
1914 bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface); in addLegacyRouteToHost()
1917 if (DBG) log("Adding legacy route " + bestRoute + in addLegacyRouteToHost()
1920 mNMS.addLegacyRouteForNetId(netId, bestRoute, uid); in addLegacyRouteToHost()