Home
last modified time | relevance | path

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

/aosp12/frameworks/libs/net/common/framework/com/android/net/module/util/
H A DNetUtils.java57 RouteInfo bestRoute = null; in selectBestRoute()
61 if ((bestRoute != null) in selectBestRoute()
62 && (bestRoute.getDestination().getPrefixLength() in selectBestRoute()
66 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
69 return bestRoute; in selectBestRoute()
/aosp12/packages/modules/Connectivity/core/java/android/net/
H A DRouteInfo.java326 RouteInfo bestRoute = null; in selectBestRoute()
330 if ((bestRoute != null) && in selectBestRoute()
331 (bestRoute.mDestination.getPrefixLength() >= in selectBestRoute()
335 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
338 return bestRoute; in selectBestRoute()
/aosp12/packages/modules/Connectivity/framework/src/android/net/
H A DLinkProperties.java1307 final RouteInfo bestRoute = RouteInfo.selectBestRoute(allRoutes, ip); in isReachable() local
1308 if (bestRoute == null) { in isReachable()
1316 return hasIpv4AddressOnInterface(bestRoute.getInterface()); in isReachable()
1327 return (!bestRoute.hasGateway() || hasGlobalIpv6Address()); in isReachable()
/aosp12/packages/modules/Connectivity/services/core/java/com/android/server/
H A DConnectivityService.java1803 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr); in modifyRouteToAddress() local
1804 if (bestRoute == null) { in modifyRouteToAddress()
1805 bestRoute = RouteInfo.makeHostRoute(addr, lp.getInterfaceName()); in modifyRouteToAddress()
1807 String iface = bestRoute.getInterface(); in modifyRouteToAddress()
1808 if (bestRoute.getGateway().equals(addr)) { in modifyRouteToAddress()
1810 bestRoute = RouteInfo.makeHostRoute(addr, iface); in modifyRouteToAddress()
1814 bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface); in modifyRouteToAddress()
1846 if (bestRoute != null) { in modifyRoute()
1847 if (bestRoute.getGateway().equals(r.getGateway())) { in modifyRoute()
1853 bestRoute = RouteInfo.makeHostRoute(r.getGateway(), in modifyRoute()
[all …]
/aosp12/packages/modules/Connectivity/service/src/com/android/server/
H A DConnectivityService.java2462 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr); in addLegacyRouteToHost() local
2463 if (bestRoute == null) { in addLegacyRouteToHost()
2464 bestRoute = RouteInfo.makeHostRoute(addr, lp.getInterfaceName()); in addLegacyRouteToHost()
2466 String iface = bestRoute.getInterface(); in addLegacyRouteToHost()
2467 if (bestRoute.getGateway().equals(addr)) { in addLegacyRouteToHost()
2469 bestRoute = RouteInfo.makeHostRoute(addr, iface); in addLegacyRouteToHost()
2473 bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface); in addLegacyRouteToHost()
2476 if (DBG) log("Adding legacy route " + bestRoute + in addLegacyRouteToHost()
2479 final String dst = bestRoute.getDestinationLinkAddress().toString(); in addLegacyRouteToHost()
2480 final String nextHop = bestRoute.hasGateway() in addLegacyRouteToHost()
[all …]