/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | conn_manager.cpp | 86 int32_t ConnManager::CreatePhysicalNetwork(uint16_t netId, NetworkPermission permission) in CreatePhysicalNetwork() 97 for (auto netId : netIds) { in CreatePhysicalNetwork() local 113 int32_t ConnManager::CreateVirtualNetwork(uint16_t netId, bool hasDns) in CreateVirtualNetwork() 119 int32_t ConnManager::DestroyNetwork(int32_t netId) in DestroyNetwork() 140 int32_t ConnManager::SetDefaultNetwork(int32_t netId) in SetDefaultNetwork() 205 int32_t ConnManager::GetNetworkForInterface(int32_t netId, std::string &interfaceName) in GetNetworkForInterface() 228 int32_t ConnManager::AddInterfaceToNetwork(int32_t netId, std::string &interfaceName, in AddInterfaceToNetwork() 318 RouteManager::TableType ConnManager::GetTableType(int32_t netId) in GetTableType() 331 int32_t ConnManager::GetFwmarkForNetwork(int32_t netId) in GetFwmarkForNetwork() 336 int32_t ConnManager::SetPermissionForNetwork(int32_t netId, NetworkPermission permission) in SetPermissionForNetwork() [all …]
|
H A D | dns_manager.cpp | 46 void DnsManager::EnableIpv6(uint16_t netId, std::string &destination, const std::string &nextHop) in EnableIpv6() 59 int32_t DnsManager::SetResolverConfig(uint16_t netId, uint16_t baseTimeoutMillis, uint8_t retryCoun… in SetResolverConfig() 66 int32_t DnsManager::GetResolverConfig(uint16_t netId, std::vector<std::string> &servers, in GetResolverConfig() 74 int32_t DnsManager::CreateNetworkCache(uint16_t netId) in CreateNetworkCache() 80 int32_t DnsManager::DestroyNetworkCache(uint16_t netId) in DestroyNetworkCache() 85 void DnsManager::SetDefaultNetwork(uint16_t netId) in SetDefaultNetwork() 96 void DnsManager::ShareDnsSet(uint16_t netId) in ShareDnsSet() 122 uint16_t netId, std::vector<AddrInfo> &res) in GetAddrInfo() 176 int32_t DnsManager::AddUidRange(int32_t netId, const std::vector<NetManagerStandard::UidRange> &uid… in AddUidRange() 182 int32_t DnsManager::DelUidRange(int32_t netId, const std::vector<NetManagerStandard::UidRange> &uid… in DelUidRange()
|
H A D | route_manager.cpp | 210 int32_t RouteManager::AddInterfaceToPhysicalNetwork(uint16_t netId, const std::string &interfaceNam… in AddInterfaceToPhysicalNetwork() 255 int32_t RouteManager::AddInterfaceToVirtualNetwork(int32_t netId, const std::string &interfaceName) in AddInterfaceToVirtualNetwork() 299 int32_t RouteManager::UpdateVpnSystemPermissionRule(int32_t netId, uint32_t table, bool add) in UpdateVpnSystemPermissionRule() 321 int32_t RouteManager::AddUsersToVirtualNetwork(int32_t netId, const std::string &interfaceName, in AddUsersToVirtualNetwork() 327 int32_t RouteManager::RemoveUsersFromVirtualNetwork(int32_t netId, const std::string &interfaceName, in RemoveUsersFromVirtualNetwork() 333 int32_t RouteManager::UpdateVirtualNetwork(int32_t netId, const std::string &interfaceName, in UpdateVirtualNetwork() 437 int32_t RouteManager::AddInterfaceToLocalNetwork(uint16_t netId, const std::string &interfaceName) in AddInterfaceToLocalNetwork() 623 int32_t RouteManager::ClearRoutes(const std::string &interfaceName, int32_t netId) in ClearRoutes() 664 int32_t RouteManager::UpdatePhysicalNetwork(uint16_t netId, const std::string &interfaceName, in UpdatePhysicalNetwork() 693 int32_t RouteManager::UpdateIncomingPacketMark(uint16_t netId, const std::string &interfaceName, in UpdateIncomingPacketMark() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/ |
H A D | dns_resolv_listen.cpp | 51 void DnsResolvListen::ProcGetConfigCommand(int clientSockFd, uint16_t netId, uint32_t uid) in ProcGetConfigCommand() 118 void DnsResolvListen::ProcGetCacheCommand(int clientSockFd, uint16_t netId) in ProcGetCacheCommand() 124 void DnsResolvListen::ProcGetCacheCommand(int clientSockFd, uint16_t netId, uint32_t callingUid) in ProcGetCacheCommand() 165 void DnsResolvListen::ProcSetCacheCommand(int clientSockFd, uint16_t netId) in ProcSetCacheCommand() 171 void DnsResolvListen::ProcSetCacheCommand(int clientSockFd, uint16_t netId, uint32_t callingUid) in ProcSetCacheCommand() 210 void DnsResolvListen::ProcJudgeIpv6Command(int clientSockFd, uint16_t netId) in ProcJudgeIpv6Command() 235 void DnsResolvListen::ProcPostDnsResultCommand(int clientSockFd, uint16_t netId) in ProcPostDnsResultCommand() 294 void DnsResolvListen::ProcGetDefaultNetworkCommand(int clientSockFd, uint16_t netId) in ProcGetDefaultNetworkCommand() 306 void DnsResolvListen::ProcBindSocketCommand(int clientSockFd, uint16_t netId) in ProcBindSocketCommand() 331 auto netId = info->netId; in ProcCommand() local
|
H A D | dns_param_cache.cpp | 60 int32_t DnsParamCache::CreateCacheForNet(uint16_t netId) in CreateCacheForNet() 73 int32_t DnsParamCache::DestroyNetworkCache(uint16_t netId) in DestroyNetworkCache() 88 int32_t DnsParamCache::SetResolverConfig(uint16_t netId, uint16_t baseTimeoutMsec, uint8_t retryCou… in SetResolverConfig() 131 void DnsParamCache::SetDefaultNetwork(uint16_t netId) in SetDefaultNetwork() 136 void DnsParamCache::EnableIpv6(uint16_t netId) in EnableIpv6() 148 bool DnsParamCache::IsIpv6Enable(uint16_t netId) in IsIpv6Enable() 164 int32_t DnsParamCache::GetResolverConfig(uint16_t netId, std::vector<std::string> &servers, in GetResolverConfig() 196 int32_t DnsParamCache::GetResolverConfig(uint16_t netId, uint32_t uid, std::vector<std::string> &se… in GetResolverConfig() 239 void DnsParamCache::SetDnsCache(uint16_t netId, const std::string &hostName, const AddrInfo &addrIn… in SetDnsCache() 261 std::vector<AddrInfo> DnsParamCache::GetDnsCache(uint16_t netId, const std::string &hostName) in GetDnsCache() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/ |
H A D | net_handle_test.cpp | 45 int32_t netId = 101; variable 55 int32_t netId = 101; variable 66 int32_t netId = 5; variable 77 int32_t netId = 5; variable
|
H A D | net_conn_service_stub_test.h | 99 int32_t GetDefaultNet(int32_t &netId) override in GetDefaultNet() 119 …int32_t RegisterNetDetectionCallback(int32_t netId, const sptr<INetDetectionCallback> &callback) o… in RegisterNetDetectionCallback() 124 …int32_t UnRegisterNetDetectionCallback(int32_t netId, const sptr<INetDetectionCallback> &callback)… in UnRegisterNetDetectionCallback() 129 int32_t NetDetection(int32_t netId) override in NetDetection() 134 …int32_t GetAddressesByName(const std::string &host, int32_t netId, std::vector<INetAddr> &addrList… in GetAddressesByName() 139 int32_t GetAddressByName(const std::string &host, int32_t netId, INetAddr &addr) override in GetAddressByName() 160 int32_t GetSpecificUidNet(int32_t uid, int32_t &netId) override in GetSpecificUidNet() 165 int32_t GetConnectionProperties(int32_t netId, NetLinkInfo &info) override in GetConnectionProperties() 170 int32_t GetNetCapabilities(int32_t netId, NetAllCapabilities &netAllCap) override in GetNetCapabilities() 175 int32_t BindSocket(int32_t socketFd, int32_t netId) override in BindSocket() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/ |
H A D | net_handle.h | 32 explicit NetHandle(int32_t netId) : netId_(netId) {} in NetHandle() 39 void SetNetId(int32_t netId) in SetNetId()
|
/ohos5.0/foundation/communication/netmanager_ext/test/networksharemanager/unittest/networkshare_manager_test/ |
H A D | networkshare_upstreammonitor_test.cpp | 55 int32_t netId = 0; variable 88 int32_t netId = 0; variable 104 int32_t netId = 0; variable 134 int32_t netId = 0; variable 166 int32_t netId = 0; variable 183 int32_t netId = 0; variable
|
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | dns_param_cache_test.cpp | 54 uint16_t netId = 1; variable 75 uint16_t netId = 1; variable 89 uint16_t netId = 1; variable 118 uint16_t netId = 1; variable 135 uint16_t netId = 1; variable
|
H A D | conn_manager_test.cpp | 138 uint16_t netId = 1; variable 175 int32_t netId = 100; variable 345 int32_t netId = 99; variable 357 int32_t netId = 99; variable 369 int32_t netId = 99; variable 386 int32_t netId = 99; variable 427 int32_t netId = 100; variable
|
H A D | mock_netsys_native_client_test.cpp | 56 int32_t netId = 0; variable 105 int32_t netId = 0; variable 189 int32_t netId = 0; variable
|
H A D | net_manager_native_test.cpp | 80 int32_t netId = 12235; variable 88 int32_t netId = 12235; variable 96 int32_t netId = 12235; variable 167 uint16_t netId = 0; variable
|
H A D | netsys_native_service_stub_test.cpp | 579 uint16_t netId = 1001; variable 603 uint16_t netId = 1001; variable 622 uint16_t netId = 1001; variable 650 uint16_t netId = 1001; in IsDataParemerVaild() local 702 uint16_t netId = 1001; variable 722 uint16_t netId = 1001; variable 911 int32_t netId = 1001; variable 998 int32_t netId = 1001; variable 1026 int32_t netId = 1001; variable 1043 int32_t netId = 1001; variable [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | netsys_client.c | 163 static int32_t NetSysGetResolvConfInternal(int sockFd, uint16_t netId, struct ResolvConfig *config) in NetSysGetResolvConfInternal() 193 int32_t NetSysGetResolvConf(uint16_t netId, struct ResolvConfig *config) in NetSysGetResolvConf() 244 static int32_t NetSysGetResolvCacheInternal(int sockFd, uint16_t netId, const struct ParamWrapper p… in NetSysGetResolvCacheInternal() 279 int32_t NetSysGetResolvCache(uint16_t netId, const struct ParamWrapper param, in NetSysGetResolvCache() 383 int32_t NetSysSetResolvCache(uint16_t netId, const struct ParamWrapper param, struct addrinfo *res) in NetSysSetResolvCache() 406 static int32_t NetSysIsIpv6EnableInternal(int sockFd, uint16_t netId, int *enable) in NetSysIsIpv6EnableInternal() 426 int NetSysIsIpv6Enable(uint16_t netId) in NetSysIsIpv6Enable() 547 static int32_t NetSysGetDefaultNetworkInternal(int sockFd, uint16_t netId, int32_t *currentNetId) in NetSysGetDefaultNetworkInternal() 567 int32_t NetSysGetDefaultNetwork(uint16_t netId, int32_t* currentNetId) in NetSysGetDefaultNetwork() 578 static int32_t NetSysBindSocketInternal(int sockFd, uint16_t netId, int32_t fd) in NetSysBindSocketInternal() [all …]
|
H A D | net_manager_native.cpp | 87 int32_t NetManagerNative::NetworkCreatePhysical(int32_t netId, int32_t permission) in NetworkCreatePhysical() 93 int32_t NetManagerNative::NetworkCreateVirtual(int32_t netId, bool hasDns) in NetworkCreateVirtual() 98 int32_t NetManagerNative::NetworkDestroy(int32_t netId) in NetworkDestroy() 133 int32_t NetManagerNative::NetworkRemoveInterface(int32_t netId, std::string interfaceName) in NetworkRemoveInterface() 178 int32_t NetManagerNative::NetworkSetDefault(int32_t netId) in NetworkSetDefault() 256 nmd::MarkMaskParcel NetManagerNative::GetFwmarkForNetwork(int32_t netId) in GetFwmarkForNetwork() 264 int32_t NetManagerNative::NetworkAddRouteParcel(int32_t netId, RouteInfoParcel parcel) in NetworkAddRouteParcel() 269 int32_t NetManagerNative::NetworkRemoveRouteParcel(int32_t netId, RouteInfoParcel parcel) in NetworkRemoveRouteParcel() 382 int32_t NetManagerNative::DnsCreateNetworkCache(uint16_t netId) in DnsCreateNetworkCache() 387 int32_t NetManagerNative::DnsDestroyNetworkCache(uint16_t netId) in DnsDestroyNetworkCache() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netsyscontroller/src/ |
H A D | mock_netsys_native_client.cpp | 115 int32_t MockNetsysNativeClient::NetworkCreatePhysical(int32_t netId, int32_t permission) in NetworkCreatePhysical() 121 int32_t MockNetsysNativeClient::NetworkDestroy(int32_t netId) in NetworkDestroy() 133 int32_t MockNetsysNativeClient::NetworkRemoveInterface(int32_t netId, const std::string &iface) in NetworkRemoveInterface() 139 int32_t MockNetsysNativeClient::NetworkAddRoute(int32_t netId, const std::string &ifName, in NetworkAddRoute() 148 int32_t MockNetsysNativeClient::NetworkRemoveRoute(int32_t netId, const std::string &ifName, in NetworkRemoveRoute() 209 int32_t MockNetsysNativeClient::GetResolverConfig(uint16_t netId, std::vector<std::string> &servers, in GetResolverConfig() 216 int32_t MockNetsysNativeClient::CreateNetworkCache(uint16_t netId) in CreateNetworkCache() 222 int32_t MockNetsysNativeClient::DestroyNetworkCache(uint16_t netId) in DestroyNetworkCache() 519 int32_t MockNetsysNativeClient::SetDefaultNetWork(int32_t netId) in SetDefaultNetWork() 531 int32_t MockNetsysNativeClient::BindSocket(int32_t socketFd, uint32_t netId) in BindSocket() [all …]
|
H A D | netsys_controller.cpp | 64 int32_t NetsysController::NetworkCreatePhysical(int32_t netId, int32_t permission) in NetworkCreatePhysical() 74 int32_t NetsysController::NetworkCreateVirtual(int32_t netId, bool hasDns) in NetworkCreateVirtual() 84 int32_t NetsysController::NetworkDestroy(int32_t netId) in NetworkDestroy() 115 int32_t NetsysController::NetworkAddUids(int32_t netId, const std::vector<int32_t> &beginUids, in NetworkAddUids() 164 int32_t NetsysController::NetworkRemoveInterface(int32_t netId, const std::string &iface) in NetworkRemoveInterface() 358 int32_t NetsysController::CreateNetworkCache(uint16_t netId) in CreateNetworkCache() 368 int32_t NetsysController::DestroyNetworkCache(uint16_t netId) in DestroyNetworkCache() 379 uint16_t netId, std::vector<AddrInfo> &res) in GetAddrInfo() 539 int32_t NetsysController::SetDefaultNetWork(int32_t netId) in SetDefaultNetWork() 559 int32_t NetsysController::BindSocket(int32_t socketFd, uint32_t netId) in BindSocket() [all …]
|
H A D | netsys_controller_service_impl.cpp | 38 int32_t NetsysControllerServiceImpl::NetworkCreatePhysical(int32_t netId, int32_t permission) in NetworkCreatePhysical() 47 int32_t NetsysControllerServiceImpl::NetworkCreateVirtual(int32_t netId, bool hasDns) in NetworkCreateVirtual() 53 int32_t NetsysControllerServiceImpl::NetworkDestroy(int32_t netId) in NetworkDestroy() 87 int32_t NetsysControllerServiceImpl::NetworkAddInterface(int32_t netId, const std::string &iface, in NetworkAddInterface() 107 int32_t NetsysControllerServiceImpl::NetworkAddRoute(int32_t netId, const std::string &ifName, in NetworkAddRoute() 118 int32_t NetsysControllerServiceImpl::NetworkRemoveRoute(int32_t netId, const std::string &ifName, in NetworkRemoveRoute() 260 int32_t NetsysControllerServiceImpl::CreateNetworkCache(uint16_t netId) in CreateNetworkCache() 269 int32_t NetsysControllerServiceImpl::DestroyNetworkCache(uint16_t netId) in DestroyNetworkCache() 414 int32_t NetsysControllerServiceImpl::SetDefaultNetWork(int32_t netId) in SetDefaultNetWork() 432 int32_t NetsysControllerServiceImpl::BindSocket(int32_t socketFd, uint32_t netId) in BindSocket() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/common/src/ |
H A D | route_utils.cpp | 67 int32_t RouteUtils::AddRoute(int32_t netId, const Route &route) in AddRoute() 72 int32_t RouteUtils::RemoveRoute(int32_t netId, const Route &route) in RemoveRoute() 77 int32_t RouteUtils::UpdateRoutes(int32_t netId, const NetLinkInfo &newnl, const NetLinkInfo &oldnl) in UpdateRoutes() 124 int32_t RouteUtils::ModifyRoute(routeOperateType op, int32_t netId, const Route &route) in ModifyRoute()
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/proxy/ |
H A D | net_conn_callback_stub.cpp | 68 int32_t netId = 0; in OnNetAvailable() local 88 int32_t netId = 0; in OnNetCapabilitiesChange() local 138 int32_t netId; in OnNetConnectionPropertiesChange() local 159 int32_t netId; in OnNetLost() local 193 int32_t netId; in OnNetBlockStatusChange() local
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/cj/connection/src/ |
H A D | net_connection_ffi.cpp | 69 int32_t CJ_GetDefaultNet(int32_t &netId) in CJ_GetDefaultNet() 109 RetNetAddressArr CJ_GetAddressesByName(int32_t netId, const char *host) in CJ_GetAddressesByName() 154 int32_t CJ_GetNetCapabilities(int32_t netId, CNetCapabilities &ret) in CJ_GetNetCapabilities() 253 int32_t CJ_GetConnectionProperties(int32_t netId, CConnectionProperties &ret) in CJ_GetConnectionProperties() 318 int32_t CJ_GetAppNet(int32_t &netId) in CJ_GetAppNet() 323 int32_t CJ_SetAppNet(int32_t netId) in CJ_SetAppNet() 367 int32_t CJ_ReportNetConnected(int32_t netId) in CJ_ReportNetConnected() 373 int32_t CJ_ReportNetDisconnected(int32_t netId) in CJ_ReportNetDisconnected() 379 int32_t CJ_NetHandleBindSocket(int32_t netId, int socketFd) in CJ_NetHandleBindSocket()
|
/ohos5.0/base/web/webview/ohos_adapter/net_connect_adapter/src/ |
H A D | net_connection_properties_adapter_impl.cpp | 25 void NetConnectionPropertiesAdapterImpl::SetNetId(int32_t netId) in SetNetId()
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/ |
H A D | netsys_native_service.cpp | 197 int32_t NetsysNativeService::DestroyNetworkCache(uint16_t netId) in DestroyNetworkCache() 243 int32_t NetsysNativeService::NetworkAddRoute(int32_t netId, const std::string &interfaceName, in NetworkAddRoute() 254 int32_t NetsysNativeService::NetworkRemoveRoute(int32_t netId, const std::string &interfaceName, in NetworkRemoveRoute() 276 int32_t NetsysNativeService::NetworkSetDefault(int32_t netId) in NetworkSetDefault() 321 int32_t NetsysNativeService::NetworkCreatePhysical(int32_t netId, int32_t permission) in NetworkCreatePhysical() 328 int32_t NetsysNativeService::NetworkCreateVirtual(int32_t netId, bool hasDns) in NetworkCreateVirtual() 335 int32_t NetsysNativeService::NetworkAddUids(int32_t netId, const std::vector<UidRange> &uidRanges) in NetworkAddUids() 392 int32_t NetsysNativeService::NetworkRemoveInterface(int32_t netId, const std::string &iface) in NetworkRemoveInterface() 399 int32_t NetsysNativeService::NetworkDestroy(int32_t netId) in NetworkDestroy() 421 int32_t NetsysNativeService::GetFwmarkForNetwork(int32_t netId, MarkMaskParcel &markMaskParcel) in GetFwmarkForNetwork() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/ |
H A D | _net_conn___net_handle.md | 26 ### netId subsection
|