• Home
  • Raw
  • Download

Lines Matching full:netid

60 int32_t NetsysController::NetworkCreatePhysical(int32_t netId, int32_t permission)  in NetworkCreatePhysical()  argument
62 …NETMGR_LOG_D("Create Physical network: netId[%{public}d], permission[%{public}d]", netId, permissi… in NetworkCreatePhysical()
67 return netsysService_->NetworkCreatePhysical(netId, permission); in NetworkCreatePhysical()
70 int32_t NetsysController::NetworkCreateVirtual(int32_t netId, bool hasDns) in NetworkCreateVirtual() argument
72 NETMGR_LOG_D("Create Virtual network: netId[%{public}d], hasDns[%{public}d]", netId, hasDns); in NetworkCreateVirtual()
77 return netsysService_->NetworkCreateVirtual(netId, hasDns); in NetworkCreateVirtual()
80 int32_t NetsysController::NetworkDestroy(int32_t netId) in NetworkDestroy() argument
82 NETMGR_LOG_D("Destroy network: netId[%{public}d]", netId); in NetworkDestroy()
87 return netsysService_->NetworkDestroy(netId); in NetworkDestroy()
90 int32_t NetsysController::NetworkAddUids(int32_t netId, const std::vector<int32_t> &beginUids, in NetworkAddUids() argument
93 NETMGR_LOG_D("Destroy network: netId[%{public}d]", netId); in NetworkAddUids()
106 return netsysService_->NetworkAddUids(netId, uidRanges); in NetworkAddUids()
109 int32_t NetsysController::NetworkDelUids(int32_t netId, const std::vector<int32_t> &beginUids, in NetworkDelUids() argument
112 NETMGR_LOG_D("Destroy network: netId[%{public}d]", netId); in NetworkDelUids()
125 return netsysService_->NetworkDelUids(netId, uidRanges); in NetworkDelUids()
128 int32_t NetsysController::NetworkAddInterface(int32_t netId, const std::string &iface) in NetworkAddInterface() argument
130 … NETMGR_LOG_D("Add network interface: netId[%{public}d], iface[%{public}s]", netId, iface.c_str()); in NetworkAddInterface()
135 return netsysService_->NetworkAddInterface(netId, iface); in NetworkAddInterface()
138 int32_t NetsysController::NetworkRemoveInterface(int32_t netId, const std::string &iface) in NetworkRemoveInterface() argument
140 …NETMGR_LOG_D("Remove network interface: netId[%{public}d], iface[%{public}s]", netId, iface.c_str(… in NetworkRemoveInterface()
145 return netsysService_->NetworkRemoveInterface(netId, iface); in NetworkRemoveInterface()
148 int32_t NetsysController::NetworkAddRoute(int32_t netId, const std::string &ifName, const std::stri… in NetworkAddRoute() argument
151 …NETMGR_LOG_D("Add Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHop[%… in NetworkAddRoute()
152netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str()); in NetworkAddRoute()
157 return netsysService_->NetworkAddRoute(netId, ifName, destination, nextHop); in NetworkAddRoute()
160 int32_t NetsysController::NetworkRemoveRoute(int32_t netId, const std::string &ifName, const std::s… in NetworkRemoveRoute() argument
163 …NETMGR_LOG_D("Remove Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHo… in NetworkRemoveRoute()
164netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str()); in NetworkRemoveRoute()
169 return netsysService_->NetworkRemoveRoute(netId, ifName, destination, nextHop); in NetworkRemoveRoute()
286 int32_t NetsysController::SetResolverConfig(uint16_t netId, uint16_t baseTimeoutMsec, uint8_t retry… in SetResolverConfig() argument
290 NETMGR_LOG_D("Set resolver config: netId[%{public}d]", netId); in SetResolverConfig()
295 return netsysService_->SetResolverConfig(netId, baseTimeoutMsec, retryCount, servers, domains); in SetResolverConfig()
298 int32_t NetsysController::GetResolverConfig(uint16_t netId, std::vector<std::string> &servers, in GetResolverConfig() argument
302 NETMGR_LOG_D("Get resolver config: netId[%{public}d]", netId); in GetResolverConfig()
307 return netsysService_->GetResolverConfig(netId, servers, domains, baseTimeoutMsec, retryCount); in GetResolverConfig()
310 int32_t NetsysController::CreateNetworkCache(uint16_t netId) in CreateNetworkCache() argument
312 NETMGR_LOG_D("create dns cache: netId[%{public}d]", netId); in CreateNetworkCache()
317 return netsysService_->CreateNetworkCache(netId); in CreateNetworkCache()
320 int32_t NetsysController::DestroyNetworkCache(uint16_t netId) in DestroyNetworkCache() argument
322 NETMGR_LOG_D("Destroy dns cache: netId[%{public}d]", netId); in DestroyNetworkCache()
327 return netsysService_->DestroyNetworkCache(netId); in DestroyNetworkCache()
331 uint16_t netId, std::vector<AddrInfo> &res) in GetAddrInfo() argument
337 return netsysService_->GetAddrInfo(hostName, serverName, hints, netId, res); in GetAddrInfo()
491 int32_t NetsysController::SetDefaultNetWork(int32_t netId) in SetDefaultNetWork() argument
493 NETMGR_LOG_D("Set DefaultNetWork: netId[%{public}d]", netId); in SetDefaultNetWork()
498 return netsysService_->SetDefaultNetWork(netId); in SetDefaultNetWork()
511 int32_t NetsysController::BindSocket(int32_t socketFd, uint32_t netId) in BindSocket() argument
513 NETMGR_LOG_D("NetsysController::BindSocket: netId = [%{public}u]", netId); in BindSocket()
518 return netsysService_->BindSocket(socketFd, netId); in BindSocket()
585 int32_t NetsysController::ShareDnsSet(uint16_t netId) in ShareDnsSet() argument
587 NETMGR_LOG_D("ShareDnsSet: netId[%{public}d]", netId); in ShareDnsSet()
592 return netsysService_->ShareDnsSet(netId); in ShareDnsSet()