Searched refs:bestRoute (Results 1 – 3 of 3) sorted by relevance
56 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()
1329 final RouteInfo bestRoute = RouteInfo.selectBestRoute(allRoutes, ip); in isReachable() local1330 if (bestRoute == null) { in isReachable()1338 return hasIpv4AddressOnInterface(bestRoute.getInterface()); in isReachable()1349 return (!bestRoute.hasGateway() || hasGlobalIpv6Address()); in isReachable()
1903 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr); in addLegacyRouteToHost() local1904 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()