Lines Matching refs:route
165 for (const auto &route : netLinkInfo_.routeList_) { in ReleaseBasicNetwork() local
166 …auto destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen… in ReleaseBasicNetwork()
167 NetsysController::GetInstance().NetworkRemoveRoute(netId_, route.iface_, destAddress, in ReleaseBasicNetwork()
168 route.gateway_.address_); in ReleaseBasicNetwork()
169 if (route.destination_.address_ != LOCAL_ROUTE_NEXT_HOP && in ReleaseBasicNetwork()
170 route.destination_.address_ != LOCAL_ROUTE_IPV6_DESTINATION) { in ReleaseBasicNetwork()
171 auto family = GetAddrFamily(route.destination_.address_); in ReleaseBasicNetwork()
173 …NetsysController::GetInstance().NetworkRemoveRoute(LOCAL_NET_ID, route.iface_, destAddress, nextHo… in ReleaseBasicNetwork()
321 netLinkInfo_.routeList_.remove_if([family](const Route &route) { in UpdateIpAddrs() argument
328 return route.destination_.type_ == addrFamily; in UpdateIpAddrs()
364 for (const auto &route : netLinkInfo_.routeList_) { in UpdateRoutes() local
365 if (newNetLinkInfo.HasRoute(route)) { in UpdateRoutes()
367 CommonUtils::ToAnonymousIp(route.destination_.address_).c_str()); in UpdateRoutes()
370 …std::string destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.pr… in UpdateRoutes()
371 … auto ret = NetsysController::GetInstance().NetworkRemoveRoute(netId_, route.iface_, destAddress, in UpdateRoutes()
372 route.gateway_.address_); in UpdateRoutes()
374 if (netSupplierType_ != BEARER_VPN && route.destination_.address_ != LOCAL_ROUTE_NEXT_HOP && in UpdateRoutes()
375 route.destination_.address_ != LOCAL_ROUTE_IPV6_DESTINATION) { in UpdateRoutes()
376 auto family = GetAddrFamily(route.destination_.address_); in UpdateRoutes()
378 …res = NetsysController::GetInstance().NetworkRemoveRoute(LOCAL_NET_ID, route.iface_, destAddress, … in UpdateRoutes()
386 for (const auto &route : newNetLinkInfo.routeList_) { in UpdateRoutes() local
387 if (netLinkInfo_.HasRoute(route)) { in UpdateRoutes()
389 CommonUtils::ToAnonymousIp(route.destination_.address_).c_str()); in UpdateRoutes()
393 …std::string destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.pr… in UpdateRoutes()
395 …NetsysController::GetInstance().NetworkAddRoute(netId_, route.iface_, destAddress, route.gateway_.… in UpdateRoutes()
397 if (netSupplierType_ != BEARER_VPN && route.destination_.address_ != LOCAL_ROUTE_NEXT_HOP && in UpdateRoutes()
398 route.destination_.address_ != LOCAL_ROUTE_IPV6_DESTINATION) { in UpdateRoutes()
399 auto family = GetAddrFamily(route.destination_.address_); in UpdateRoutes()
401 …res = NetsysController::GetInstance().NetworkAddRoute(LOCAL_NET_ID, route.iface_, destAddress, nex… in UpdateRoutes()