/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | virtual_network.cpp | 45 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 NETNATIVE_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 NETNATIVE_LOGE("Failed to add interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in AddInterface() 96 NETNATIVE_LOGW("Failed to remove interface %{public}s to netId_ in RemoveInterface() [all...] |
H A D | local_network.cpp | 34 if (RouteManager::AddInterfaceToLocalNetwork(netId_, interfaceName) != 0) { in AddInterface() 35 NETNATIVE_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 NETNATIVE_LOGE("Failed to remove interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in RemoveInterface()
|
H A D | physical_network.cpp | 58 if (RouteManager::AddInterfaceToPhysicalNetwork(netId_, interfaceName, permission_) != 0) { in AddInterface() 59 NETNATIVE_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 NETNATIVE_LOGE("Failed to remove interface %{public}s to netId_ %{public}u", interfaceName.c_str(), netId_); in RemoveInterface()
|
H A D | netsys_network.cpp | 25 NetsysNetwork::NetsysNetwork(uint16_t netId) : netId_(netId) {} in NetsysNetwork()
|
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/ |
H A D | net_handle.h | 31 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_; member in OHOS::NetManagerStandard::NetHandle
|
/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | network.cpp | 59 : netId_(netId), in Network() 69 return netId_; in GetNetId() 79 return netId_ == network.netId_; in operator ==() 107 if (NetsysController::GetInstance().NetworkCreatePhysical(netId_, 0) != NETMANAGER_SUCCESS) { in CreateBasicNetwork() 108 std::string errMsg = std::string(ERROR_MSG_CREATE_PHYSICAL_NETWORK_FAILED).append(std::to_string(netId_)); in CreateBasicNetwork() 111 NetsysController::GetInstance().CreateNetworkCache(netId_); in CreateBasicNetwork() 123 if (NetsysController::GetInstance().NetworkCreateVirtual(netId_, hasDns) != NETMANAGER_SUCCESS) { in CreateVirtualNetwork() 124 std::string errMsg = std::string(ERROR_MSG_CREATE_VIRTUAL_NETWORK_FAILED).append(std::to_string(netId_)); in CreateVirtualNetwork() 127 NetsysController::GetInstance().CreateNetworkCache(netId_); in CreateVirtualNetwork() [all...] |
H A D | probe_thread.cpp | 57 : 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 D | net_http_probe.cpp | 83 : netId_(netId), netBearType_(bearType), netLinkInfo_(netLinkInfo) in NetHttpProbe() 96 NETMGR_LOG_I("Send net:[%{public}d] %{public}s probe in", netId_, in SendProbe() 227 if (NetsysController::GetInstance().GetAddrInfo(domain, serverName, hints, netId_, result) < 0) { in GetAddrInfo() 228 NETMGR_LOG_E("Get net[%{public}d] address info failed,errno[%{public}d]:%{public}s", netId_, errno, in GetAddrInfo() 233 NETMGR_LOG_E("Get net[%{public}d] address info return nullptr result", netId_); in GetAddrInfo() 362 NETMGR_LOG_W("Net:[%{public}d] bear type:[%{public}d], no proxy probe required.", netId_, probeType); in SetProxyOption() 381 NETMGR_LOG_I("Using proxy for http probe on netId:[%{public}d]", netId_); in SetProxyOption() 468 NETMGR_LOG_W("Net[%{public}d] probe use http proxy,no DNS detection required.", netId_); in SendDnsProbe() 492 NETMGR_LOG_I("Get net[%{public}d] ip addr for HTTP&HTTPS probe url ", netId_); in SendDnsProbe() 499 NETMGR_LOG_I("Get net[%{public}d] ip addr for HTTP probe url ", netId_); in SendDnsProbe() [all...] |
H A D | net_monitor.cpp | 81 : 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() 171 netId_, netBearType in SendProbe() [all...] |
H A D | nat464_service.cpp | 34 netId_ = netId; in Nat464Service() 130 qparam.qp_netid = netId_; in GetPrefixFromDns64() 170 int32_t ret = NetsysController::GetInstance().StartClat(v6Iface_, netId_, nat64PrefixFromDns_.address_); in StartService()
|
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | net_handle.cpp | 34 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()
|
/foundation/communication/netmanager_base/frameworks/js/napi/connection/net_handle_interface/src/ |
H A D | net_handle_interface.cpp | 31 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()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/ |
H A D | dns_resolv_config.cpp | 36 : netId_(0), netIdIsSet_(false), revisionId_(0), timeoutMsec_(0), retryCount_(0), isIpv6Enable_(false) in DnsResolvConfig() 56 netId_ = netId; in SetNetId() 61 return netId_; in GetNetId()
|
H A D | dns_proxy_listen.cpp | 34 uint16_t DnsProxyListen::netId_ = 0; member in OHOS::nmd::DnsProxyListen 89 DnsParamCache::GetInstance().GetResolverConfig(DnsProxyListen::netId_, servers, domains, baseTimeoutMsec, in GetDnsProxyServers() 454 DnsProxyListen::netId_ = netId; in SetParseNetId() member in OHOS::nmd::DnsProxyListen
|
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | netsys_network.h | 94 * @return Returns netId_ 98 return netId_; in GetNetId() 103 uint16_t netId_; member in OHOS::nmd::NetsysNetwork
|
H A D | dns_resolv_config.h | 70 uint16_t netId_; member in OHOS::nmd::DnsResolvConfig
|
/foundation/communication/netmanager_base/frameworks/js/napi/connection/async_context/src/ |
H A D | parse_nethandle_context.cpp | 38 int32_t netId_ = NapiUtils::GetInt32Property(GetEnv(), params[ARG_INDEX_0], KEY_NET_ID); in ParseParams() local 39 netHandle_.SetNetId(netId_); in ParseParams()
|
H A D | getaddressbyname_context.cpp | 26 netId_ = 0; in GetAddressByNameContext()
|
H A D | bindsocket_context.cpp | 25 : BaseContext(env, manager), netId_(0), socketFd_(0) in BindSocketContext()
|
/foundation/communication/netmanager_base/frameworks/js/napi/connection/async_context/include/ |
H A D | bindsocket_context.h | 36 int32_t netId_; member in OHOS::NetManagerStandard::final
|
H A D | getaddressbyname_context.h | 39 int32_t netId_; member in OHOS::NetManagerStandard::final
|
/foundation/communication/netmanager_ext/services/vpnmanager/src/ |
H A D | net_vpn_impl.cpp | 108 netId_ = *(netIdList.begin()); in SetUp() 109 NETMGR_EXT_LOG_I("vpn network netid: %{public}d", netId_); in SetUp() 112 if (NetsysController::GetInstance().NetworkAddUids(netId_, beginUids_, endUids_)) { in SetUp() 155 if (NetsysController::GetInstance().NetworkAddUids(netId_, beginUids_, endUids_)) { in ResumeUids() 169 if (NetsysController::GetInstance().NetworkDelUids(netId_, beginUids_, endUids_)) { in Destroy() 331 NetsysController::GetInstance().NetworkRemoveRoute(netId_, route.iface_, destAddress, route.gateway_.address_); in DelNetLinkInfo()
|
/foundation/communication/netmanager_base/services/netconnmanager/include/ |
H A D | nat464_service.h | 53 int32_t netId_; member in OHOS::NetManagerStandard::Nat464Service
|
H A D | probe_thread.h | 97 uint32_t netId_ = 0; member in OHOS::NetManagerStandard::ProbeThread
|
H A D | net_monitor.h | 100 uint32_t netId_ = 0; member in OHOS::NetManagerStandard::NetMonitor
|