Searched refs:bestRoute (Results 1 – 3 of 3) sorted by relevance
385 RouteInfo bestRoute = null; in selectBestRoute()389 if ((bestRoute != null) && in selectBestRoute()390 (bestRoute.mDestination.getPrefixLength() >= in selectBestRoute()394 if (route.matches(dest)) bestRoute = route; in selectBestRoute()397 return bestRoute; in selectBestRoute()
966 final RouteInfo bestRoute = RouteInfo.selectBestRoute(allRoutes, ip); in isReachable() local967 if (bestRoute == null) { in isReachable()975 return hasIPv4AddressOnInterface(bestRoute.getInterface()); in isReachable()986 return (!bestRoute.hasGateway() || hasGlobalIPv6Address()); in isReachable()
1562 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr); in addLegacyRouteToHost() local1563 if (bestRoute == null) { in addLegacyRouteToHost()1564 bestRoute = RouteInfo.makeHostRoute(addr, lp.getInterfaceName()); in addLegacyRouteToHost()1566 String iface = bestRoute.getInterface(); in addLegacyRouteToHost()1567 if (bestRoute.getGateway().equals(addr)) { in addLegacyRouteToHost()1569 bestRoute = RouteInfo.makeHostRoute(addr, iface); in addLegacyRouteToHost()1573 bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface); in addLegacyRouteToHost()1576 if (DBG) log("Adding legacy route " + bestRoute + in addLegacyRouteToHost()1579 mNetd.addLegacyRouteForNetId(netId, bestRoute, uid); in addLegacyRouteToHost()