Home
last modified time | relevance | path

Searched refs:netId_ (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dvirtual_network.cpp45 if (RouteManager::AddUsersToVirtualNetwork(netId_, interface, uidVec)) { in AddUids()
46 … NETNATIVE_LOGE("failed to add uids on interface %s of netId %u", interface.c_str(), netId_); in AddUids()
61 if (RouteManager::RemoveUsersFromVirtualNetwork(netId_, interface, uidVec)) { in RemoveUids()
62 … NETNATIVE_LOGE("failed to remove uids on interface %s of netId %u", interface.c_str(), netId_); in RemoveUids()
73 …IVE_LOGW("Failed to add interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in AddInterface()
82 if (RouteManager::AddInterfaceToVirtualNetwork(netId_, interfaceName)) { in AddInterface()
83 …IVE_LOGE("Failed to add interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in AddInterface()
96 …_LOGW("Failed to remove interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in RemoveInterface()
100 if (RouteManager::RemoveInterfaceFromVirtualNetwork(netId_, interfaceName)) { in RemoveInterface()
101 …_LOGE("Failed to remove interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in RemoveInterface()
H A Dlocal_network.cpp34 if (RouteManager::AddInterfaceToLocalNetwork(netId_, interfaceName) != 0) { in AddInterface()
35 …IVE_LOGE("Failed to add interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in AddInterface()
50 if (RouteManager::RemoveInterfaceFromLocalNetwork(netId_, interfaceName) != 0) { in RemoveInterface()
51 …_LOGE("Failed to remove interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in RemoveInterface()
H A Dphysical_network.cpp58 if (RouteManager::AddInterfaceToPhysicalNetwork(netId_, interfaceName, permission_) != 0) { in AddInterface()
59 …IVE_LOGE("Failed to add interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in AddInterface()
83 if (RouteManager::RemoveInterfaceFromPhysicalNetwork(netId_, interfaceName, permission_) != 0) { in RemoveInterface()
84 …_LOGE("Failed to remove interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in RemoveInterface()
H A Dnetsys_network.cpp25 NetsysNetwork::NetsysNetwork(uint16_t netId) : netId_(netId) {} in NetsysNetwork()
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnetwork.cpp59 : netId_(netId), in Network()
69 return netId_; in GetNetId()
79 return netId_ == network.netId_; in operator ==()
111 NetsysController::GetInstance().CreateNetworkCache(netId_); in CreateBasicNetwork()
127 NetsysController::GetInstance().CreateNetworkCache(netId_); in CreateVirtualNetwork()
158 supplierId_, netId_, netCapabilities.c_str()); in ReleaseBasicNetwork()
184 NetsysController::GetInstance().NetworkDestroy(netId_); in ReleaseBasicNetwork()
185 NetsysController::GetInstance().DestroyNetworkCache(netId_); in ReleaseBasicNetwork()
203 NetsysController::GetInstance().NetworkDestroy(netId_); in ReleaseVirtualNetwork()
204 NetsysController::GetInstance().DestroyNetworkCache(netId_); in ReleaseVirtualNetwork()
[all …]
H A Dnet_http_probe.cpp102 : netId_(netId), netBearType_(bearType), netLinkInfo_(netLinkInfo), probeType_(probeType) in NetHttpProbe()
115 NETMGR_LOG_I("Send net:[%{public}d] %{public}s probe in", netId_, in SendProbe()
250 NETMGR_LOG_E("Get net[%{public}d] address info return nullptr result", netId_); in GetAddrInfo()
419 NETMGR_LOG_I("Using proxy for http probe on netId:[%{public}d]", netId_); in SetProxyOption()
502 NETMGR_LOG_W("Net[%{public}d] probe use http proxy,no DNS detection required.", netId_); in SendDnsProbe()
526 NETMGR_LOG_I("Get net[%{public}d] ip addr for HTTP&HTTPS probe url ", netId_); in SendDnsProbe()
533 NETMGR_LOG_I("Get net[%{public}d] ip addr for HTTP probe url ", netId_); in SendDnsProbe()
539 NETMGR_LOG_I("Get net[%{public}d] ip addr for HTTPS probe url ", netId_); in SendDnsProbe()
606 netId_); in CheckRespCode()
626 netId_, respCode); in CheckClientErrorRespCode()
[all …]
H A Dnet_monitor.cpp81 : netId_(netId), netLinkInfo_(netLinkInfo), netMonitorCallback_(callback) in NetMonitor()
91 NETMGR_LOG_D("Start net[%{public}d] monitor in", netId_); in Start()
93 NETMGR_LOG_W("Net[%{public}d] monitor is detecting, no need to start", netId_); in Start()
106 NETMGR_LOG_I("Stop net[%{public}d] monitor in", netId_); in Stop()
109 NETMGR_LOG_D("Stop net[%{public}d] monitor out", netId_); in Stop()
120 NETMGR_LOG_I("Net[%{public}d] probe success", netId_); in ProcessDetection()
125 NETMGR_LOG_E("Net[%{public}d] probe failed with 302 response on Cell", netId_); in ProcessDetection()
129 NETMGR_LOG_W("Net[%{public}d] need portal", netId_); in ProcessDetection()
133 NETMGR_LOG_E("Net[%{public}d] probe failed", netId_); in ProcessDetection()
171netId_, netBearType_, netLinkInfo_, latch, latchAll, ProbeType::PROBE_HTTP, httpUrl_, httpsUrl_); in SendProbe()
[all …]
H A Dprobe_thread.cpp57 …: netId_(netId), probeType_(probeType), latch_(latch), latchAll_(latchAll), httpProbeUrl_(httpUrl), in ProbeThread()
72 NETMGR_LOG_D("Start net[%{public}d] monitor in", netId_); in Start()
84 NETMGR_LOG_E("Net:[%{public}d] httpProbeUrl is empty", netId_); in SendHttpProbe()
92 NETMGR_LOG_E("Net:[%{public}d] httpProbe_ is nullptr", netId_); in SendHttpProbe()
100 NETMGR_LOG_E("Net:[%{public}d] send probe failed.", netId_); in SendHttpProbe()
H A Dnat464_service.cpp34 netId_ = netId; in Nat464Service()
130 qparam.qp_netid = netId_; in GetPrefixFromDns64()
170 …int32_t ret = NetsysController::GetInstance().StartClat(v6Iface_, netId_, nat64PrefixFromDns_.addr… in StartService()
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Dnet_handle.h31 NetHandle() : netId_(0) {} in NetHandle()
32 explicit NetHandle(int32_t netId) : netId_(netId) {} in NetHandle()
41 netId_ = netId; in SetNetId()
46 return netId_; in GetNetId()
50 int32_t netId_;
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dnet_handle.cpp34 return NetConnClient::GetInstance().GetAddressesByName(host, netId_, addrList); in GetAddressesByName()
43 return NetConnClient::GetInstance().GetAddressByName(host, netId_, addr); in GetAddressByName()
52 return NetConnClient::GetInstance().BindSocket(socketFd, netId_); in BindSocket()
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/net_handle_interface/src/
H A Dnet_handle_interface.cpp31 context->netId_ = NapiUtils::GetInt32Property(theEnv, thisVal, PROPERTY_NET_ID); in GetAddressesByName()
43 context->netId_ = NapiUtils::GetInt32Property(theEnv, thisVal, PROPERTY_NET_ID); in GetAddressByName()
55 context->netId_ = NapiUtils::GetInt32Property(theEnv, thisVal, PROPERTY_NET_ID); in BindSocket()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/
H A Ddns_resolv_config.cpp36 …: netId_(0), netIdIsSet_(false), revisionId_(0), timeoutMsec_(0), retryCount_(0), isIpv6Enable_(fa… in DnsResolvConfig()
56 netId_ = netId; in SetNetId()
61 return netId_; in GetNetId()
/ohos5.0/base/web/webview/ohos_adapter/net_connect_adapter/src/
H A Dnet_connection_properties_adapter_impl.cpp22 return netId_; in GetNetId()
27 netId_ = netId; in SetNetId()
H A Dnet_capabilities_adapter_impl.cpp22 return netId_; in GetNetId()
37 netId_ = netId; in SetNetId()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Dnetsys_network.h98 return netId_; in GetNetId()
103 uint16_t netId_; variable
/ohos5.0/foundation/communication/netmanager_ext/services/vpnmanager/src/
H A Dnet_vpn_impl.cpp105 netId_ = *(netIdList.begin()); in SetUp()
106 NETMGR_EXT_LOG_I("vpn network netid: %{public}d", netId_); in SetUp()
114 if (NetsysController::GetInstance().NetworkAddUids(netId_, beginUids_, endUids_)) { in SetUp()
133 if (NetsysController::GetInstance().NetworkAddUids(netId_, beginUids_, endUids_)) { in ResumeUids()
147 if (NetsysController::GetInstance().NetworkDelUids(netId_, beginUids_, endUids_)) { in Destroy()
283 …NetsysController::GetInstance().NetworkRemoveRoute(netId_, route.iface_, destAddress, route.gatewa… in DelNetLinkInfo()
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/async_context/src/
H A Dparse_nethandle_context.cpp38 int32_t netId_ = NapiUtils::GetInt32Property(GetEnv(), params[ARG_INDEX_0], KEY_NET_ID); in ParseParams() local
39 netHandle_.SetNetId(netId_); in ParseParams()
H A Dgetaddressbyname_context.cpp26 netId_ = 0; in GetAddressByNameContext()
/ohos5.0/base/web/webview/ohos_adapter/net_connect_adapter/include/
H A Dnet_connection_properties_adapter_impl.h34 int32_t netId_ = -1;
H A Dnet_capabilities_adapter_impl.h42 int32_t netId_ = -1;
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/async_context/include/
H A Dbindsocket_context.h36 int32_t netId_;
H A Dgetaddressbyname_context.h39 int32_t netId_;
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/include/
H A Dnat464_service.h53 int32_t netId_; variable
H A Dprobe_thread.h97 uint32_t netId_ = 0;

12