Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetUtils.java59 RouteInfo bestRoute = null; in selectBestRoute()
64 if ((bestRoute != null) in selectBestRoute()
65 && (bestRoute.getDestination().getPrefixLength() in selectBestRoute()
69 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
73 if (bestRoute != null && bestRoute.getType() == RouteInfo.RTN_UNICAST) { in selectBestRoute()
74 return bestRoute; in selectBestRoute()
/packages/modules/Connectivity/framework/src/android/net/
DLinkProperties.java1334 final RouteInfo bestRoute = RouteInfo.selectBestRoute(allRoutes, ip); in isReachable() local
1335 if (bestRoute == null) { in isReachable()
1343 return hasIpv4AddressOnInterface(bestRoute.getInterface()); in isReachable()
1354 return (!bestRoute.hasGateway() || hasGlobalIpv6Address()); in isReachable()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java3315 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr);
3316 if (bestRoute == null) {
3317 bestRoute = RouteInfo.makeHostRoute(addr, lp.getInterfaceName());
3319 String iface = bestRoute.getInterface();
3320 if (bestRoute.getGateway().equals(addr)) {
3322 bestRoute = RouteInfo.makeHostRoute(addr, iface);
3326 bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface);
3329 if (DBG) log("Adding legacy route " + bestRoute +
3332 final String dst = bestRoute.getDestinationLinkAddress().toString();
3333 final String nextHop = bestRoute.hasGateway()
[all …]