/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | net_link_info.cpp | 36 routeList_.assign(linkInfo.routeList_.begin(), linkInfo.routeList_.end()); in NetLinkInfo() 49 routeList_.assign(linkInfo.routeList_.begin(), linkInfo.routeList_.end()); in operator =() 83 if (!parcel.WriteUint32(routeList_.size())) { in Marshalling() 86 for (auto it = routeList_.begin(); it != routeList_.end(); it++) { in Marshalling() 148 ptr->routeList_.push_back(*route); in Unmarshalling() 187 if (!parcel.WriteUint32(object->routeList_.size())) { in Marshalling() 190 for (auto it = object->routeList_.begin(); it != object->routeList_.end(); it++) { in Marshalling() 213 std::list<Route>().swap(routeList_); in Initialize() 226 return std::find(routeList_.begin(), routeList_.end(), route) != routeList_.end(); in HasRoute() 308 if (routeList_.empty()) { in ToStringRoute() [all …]
|
H A D | net_adj_iface_info.cpp | 42 if (!parcel.WriteUint32(routeList_.size())) { in Marshalling() 45 for (const auto &route : routeList_) { in Marshalling() 82 info->routeList_.push_back(*route); in Unmarshalling() 94 routeList_ == rhs.routeList_; in operator ==()
|
/ohos5.0/foundation/communication/netmanager_base/services/common/src/ |
H A D | route_utils.cpp | 86 for (itero = oldnl.routeList_.begin(); itero != oldnl.routeList_.end(); ++itero) { in UpdateRoutes() 87 iterf = std::find(newnl.routeList_.begin(), newnl.routeList_.end(), *itero); in UpdateRoutes() 88 if (iterf == newnl.routeList_.end()) { in UpdateRoutes() 97 for (itern = newnl.routeList_.begin(); itern != newnl.routeList_.end(); ++itern) { in UpdateRoutes() 98 …if (std::find(oldnl.routeList_.begin(), oldnl.routeList_.end(), *itern) == oldnl.routeList_.end())… in UpdateRoutes()
|
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
H A D | dev_interface_state.cpp | 231 std::list<Route>().swap(linkInfo_->routeList_); in UpdateLinkInfo() 243 linkInfo_->routeList_.push_back(route); in UpdateLinkInfo() 266 std::list<Route>().swap(linkInfo_->routeList_); in UpdateLanLinkInfo() 278 linkInfo_->routeList_.push_back(route); in UpdateLanLinkInfo() 295 std::list<Route>().swap(linkInfo_->routeList_); in UpdateLanLinkInfo() 301 for (const auto &routeAddr : config->routeList_) { in UpdateLanLinkInfo() 307 linkInfo_->routeList_.push_back(routeStc); in UpdateLanLinkInfo() 325 std::list<Route>().swap(linkInfo_->routeList_); in UpdateLinkInfo() 337 linkInfo_->routeList_.push_back(routeStc); in UpdateLinkInfo() 373 linkInfo_->routeList_.push_back(localRoute); in CreateLocalRoute() [all …]
|
H A D | ethernet_configuration.cpp | 177 StaticConfiguration::ExtractNetAddrBySeparator(route, config->ipStatic_.routeList_); in ConvertJsonToConfiguration() 290 config->routeList_.push_back(route); in ConvertToConfiguration() 349 for (const auto &route : devLinkInfo->routeList_) { in MakeInterfaceConfiguration() 350 cfg->ipStatic_.routeList_.push_back(route.destination_); in MakeInterfaceConfiguration() 352 cfg->ipStatic_.gatewayList_ = GetGatewayFromRouteList(devLinkInfo->routeList_); in MakeInterfaceConfiguration() 555 StaticConfiguration::ExtractNetAddrBySeparator(routes, cfg->ipStatic_.routeList_); in ParseStaticConfig() 612 for (auto &route : cfg->ipStatic_.routeList_) { in ParserIfaceIpAndRoute() 652 std::string routes = AccumulateNetAddress(cfg->ipStatic_.routeList_); in GenCfgContent() 654 … std::accumulate(cfg->ipStatic_.routeList_.begin(), cfg->ipStatic_.routeList_.end(), std::string(), in GenCfgContent()
|
H A D | ethernet_lan_management.cpp | 96 for (const auto &route : newNetLinkInfo.routeList_) { in ReleaseLanNetLink() 156 for (const auto &route : newNetLinkInfo.routeList_) { in SetRoute() 175 for (const auto &route : netLinkInfo_.routeList_) { in DelRoute()
|
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | network.cpp | 165 for (const auto &route : netLinkInfo_.routeList_) { in ReleaseBasicNetwork() 242 for (auto iter = linkInfo.routeList_.begin(); iter != linkInfo.routeList_.end();) { in GetNetLinkInfo() 248 iter = linkInfo.routeList_.erase(iter); in GetNetLinkInfo() 321 netLinkInfo_.routeList_.remove_if([family](const Route &route) { in UpdateIpAddrs() 364 for (const auto &route : netLinkInfo_.routeList_) { in UpdateRoutes() 386 for (const auto &route : newNetLinkInfo.routeList_) { in UpdateRoutes() 408 if (newNetLinkInfo.routeList_.empty()) { in UpdateRoutes()
|
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/ethernetclient/src/ |
H A D | static_configuration.cpp | 34 MarshallingNetAddressList(routeList_, MAX_ADDR_SIZE, parcel) && in Marshalling() 68 UnmarshallingNetAddressList(parcel, ptr->routeList_, MAX_ADDR_SIZE) && in Unmarshalling()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_net_agent.cpp | 363 netLinkInfo->routeList_.push_back(*route); 374 netLinkInfo->routeList_.push_back(*ipv6route); 388 netLinkInfo->routeList_.push_back(*hostRoute); 405 netLinkInfo->routeList_.push_back(*localRoute); 418 netLinkInfo->routeList_.push_back(*ipv6route); 425 netLinkInfo->routeList_.push_back(*ipv6route);
|
/ohos5.0/foundation/communication/netmanager_ext/services/vpnmanager/src/ |
H A D | net_vpn_impl.cpp | 227 linkInfo->routeList_.emplace_back(ipv4DefaultRoute); in UpdateNetLinkInfo() 232 linkInfo->routeList_.emplace_back(ipv6DefaultRoute); in UpdateNetLinkInfo() 235 linkInfo->routeList_.assign(vpnConfig_->routes_.begin(), vpnConfig_->routes_.end()); in UpdateNetLinkInfo() 236 for (auto &route : linkInfo->routeList_) { in UpdateNetLinkInfo()
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/cj/connection/src/ |
H A D | net_connection_callback.cpp | 152 for (auto it = info->routeList_.begin(); it != info->routeList_.end(); ++it, ++i) { in SetConnectionProp() 192 .routeSize = info->routeList_.size(), in NetConnectionPropertiesChange()
|
H A D | net_connection_ffi.cpp | 235 for (auto it = linkInfo.routeList_.begin(); it != linkInfo.routeList_.end(); ++it, ++i) { in SetRoute() 267 ret.routeSize = static_cast<int64_t>(linkInfo.routeList_.size()); in CJ_GetConnectionProperties()
|
/ohos5.0/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/ |
H A D | route_utils_test.cpp | 251 nlio.routeList_.push_back(GetRoute()); 252 nlin.routeList_.push_back(GetRoute2()); 261 nlio.routeList_.push_back(GetRoute());
|
/ohos5.0/foundation/communication/netmanager_ext/interfaces/innerkits/ethernetclient/include/ |
H A D | static_configuration.h | 29 std::vector<INetAddr> routeList_; member
|
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/ |
H A D | net_link_info.h | 34 std::list<Route> routeList_; member
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_exec/src/ |
H A D | connection_exec.cpp | 794 if (!linkInfo->routeList_.empty() && linkInfo->routeList_.size() <= MAX_ARRAY_LENGTH) { in FillRouoteList() 795 …napi_value routes = NapiUtils::CreateArray(env, std::min(linkInfo->routeList_.size(), MAX_ARRAY_LE… in FillRouoteList() 796 auto it = linkInfo->routeList_.begin(); in FillRouoteList() 797 …for (uint32_t index = 0; index < MAX_ARRAY_LENGTH && it != linkInfo->routeList_.end(); ++index, ++… in FillRouoteList()
|
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/context/ |
H A D | set_iface_config_context.cpp | 67 StaticConfiguration::ExtractNetAddrBySeparator(routeAddresses, config_->ipStatic_.routeList_); in ParseParams()
|
/ohos5.0/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/ |
H A D | net_link_info_test.cpp | 73 netLinkInfo->routeList_.push_back(*route); in GetNetLinkInfo()
|
H A D | native_net_conn_test.cpp | 117 netLinkInfo->routeList_.push_back(*route); in GetNetLinkInfoSample() 423 netLinkInfo->routeList_.push_back(*route);
|
H A D | net_conn_hievent_test.cpp | 93 netLinkInfo->routeList_.push_back(*route); in GetNetLinkInfo()
|
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/ |
H A D | ethernet_exec.cpp | 98 std::string routeAddresses = AccumulateNetAddress(context->config_->ipStatic_.routeList_); in GetIfaceConfigCallback()
|
/ohos5.0/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/ |
H A D | ethernet_lan_management_test.cpp | 69 ic->ipStatic_.routeList_.push_back(route); in GetNewIfaceConfig()
|
H A D | ethernet_service_proxy_test.cpp | 81 ic->ipStatic_.routeList_.push_back(route); in GetIfaceConfig()
|
/ohos5.0/base/telephony/cellular_data/services/src/state_machine/ |
H A D | cellular_data_state_machine.cpp | 404 netLinkInfo_->routeList_.clear(); in ResolveRoute() 424 netLinkInfo_->routeList_.push_back(route); in ResolveRoute()
|
/ohos5.0/base/telephony/cellular_data/test/ |
H A D | cellular_state_machine_test.cpp | 1204 EXPECT_TRUE(cellularMachine->netLinkInfo_->routeList_.empty()); 1226 EXPECT_FALSE(cellularMachine->netLinkInfo_->routeList_.empty()); 1253 EXPECT_EQ(cellularMachine->netLinkInfo_->routeList_.size(), 2);
|