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()
802 final RouteInfo bestRoute = RouteInfo.selectBestRoute(allRoutes, ip); in isReachable() local803 if (bestRoute == null) { in isReachable()811 return hasIPv4AddressOnInterface(bestRoute.getInterface()); in isReachable()822 return (!bestRoute.hasGateway() || hasGlobalIPv6Address()); in isReachable()
1478 RouteInfo bestRoute = RouteInfo.selectBestRoute(lp.getAllRoutes(), addr); in addLegacyRouteToHost() local1479 if (bestRoute == null) { in addLegacyRouteToHost()1480 bestRoute = RouteInfo.makeHostRoute(addr, lp.getInterfaceName()); in addLegacyRouteToHost()1482 String iface = bestRoute.getInterface(); in addLegacyRouteToHost()1483 if (bestRoute.getGateway().equals(addr)) { in addLegacyRouteToHost()1485 bestRoute = RouteInfo.makeHostRoute(addr, iface); in addLegacyRouteToHost()1489 bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface); in addLegacyRouteToHost()1492 if (DBG) log("Adding legacy route " + bestRoute + in addLegacyRouteToHost()1495 mNetd.addLegacyRouteForNetId(netId, bestRoute, uid); in addLegacyRouteToHost()