Home
last modified time | relevance | path

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

/frameworks/libs/net/common/src_frameworkcommon/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.java1902 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr); in addLegacyRouteToHost() local
1903 if (bestRoute == null) { in addLegacyRouteToHost()
1904 bestRoute = RouteInfo.makeHostRoute(addr, lp.getInterfaceName()); in addLegacyRouteToHost()
1906 String iface = bestRoute.getInterface(); in addLegacyRouteToHost()
1907 if (bestRoute.getGateway().equals(addr)) { in addLegacyRouteToHost()
1909 bestRoute = RouteInfo.makeHostRoute(addr, iface); in addLegacyRouteToHost()
1913 bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface); in addLegacyRouteToHost()
1916 if (DBG) log("Adding legacy route " + bestRoute + in addLegacyRouteToHost()
1919 mNMS.addLegacyRouteForNetId(netId, bestRoute, uid); in addLegacyRouteToHost()