Home
last modified time | relevance | path

Searched refs:routeList_ (Results 1 – 25 of 28) sorted by relevance

12

/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dnet_link_info.cpp36 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 Dnet_adj_iface_info.cpp42 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 Droute_utils.cpp86 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 Ddev_interface_state.cpp231 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 Dethernet_configuration.cpp177 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 Dethernet_lan_management.cpp96 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 Dnetwork.cpp165 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 Dstatic_configuration.cpp34 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 Dwifi_net_agent.cpp363 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 Dnet_vpn_impl.cpp227 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 Dnet_connection_callback.cpp152 for (auto it = info->routeList_.begin(); it != info->routeList_.end(); ++it, ++i) { in SetConnectionProp()
192 .routeSize = info->routeList_.size(), in NetConnectionPropertiesChange()
H A Dnet_connection_ffi.cpp235 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 Droute_utils_test.cpp251 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 Dstatic_configuration.h29 std::vector<INetAddr> routeList_; member
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Dnet_link_info.h34 std::list<Route> routeList_; member
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_exec/src/
H A Dconnection_exec.cpp794 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 Dset_iface_config_context.cpp67 StaticConfiguration::ExtractNetAddrBySeparator(routeAddresses, config_->ipStatic_.routeList_); in ParseParams()
/ohos5.0/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/
H A Dnet_link_info_test.cpp73 netLinkInfo->routeList_.push_back(*route); in GetNetLinkInfo()
H A Dnative_net_conn_test.cpp117 netLinkInfo->routeList_.push_back(*route); in GetNetLinkInfoSample()
423 netLinkInfo->routeList_.push_back(*route);
H A Dnet_conn_hievent_test.cpp93 netLinkInfo->routeList_.push_back(*route); in GetNetLinkInfo()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/
H A Dethernet_exec.cpp98 std::string routeAddresses = AccumulateNetAddress(context->config_->ipStatic_.routeList_); in GetIfaceConfigCallback()
/ohos5.0/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/
H A Dethernet_lan_management_test.cpp69 ic->ipStatic_.routeList_.push_back(route); in GetNewIfaceConfig()
H A Dethernet_service_proxy_test.cpp81 ic->ipStatic_.routeList_.push_back(route); in GetIfaceConfig()
/ohos5.0/base/telephony/cellular_data/services/src/state_machine/
H A Dcellular_data_state_machine.cpp404 netLinkInfo_->routeList_.clear(); in ResolveRoute()
424 netLinkInfo_->routeList_.push_back(route); in ResolveRoute()
/ohos5.0/base/telephony/cellular_data/test/
H A Dcellular_state_machine_test.cpp1204 EXPECT_TRUE(cellularMachine->netLinkInfo_->routeList_.empty());
1226 EXPECT_FALSE(cellularMachine->netLinkInfo_->routeList_.empty());
1253 EXPECT_EQ(cellularMachine->netLinkInfo_->routeList_.size(), 2);

12