• Home
  • Raw
  • Download

Lines Matching full:netid

64 int32_t NetsysController::NetworkCreatePhysical(int32_t netId, int32_t permission)  in NetworkCreatePhysical()  argument
66 …NETMGR_LOG_I("Create Physical network: netId[%{public}d], permission[%{public}d]", netId, permissi… in NetworkCreatePhysical()
71 return netsysService_->NetworkCreatePhysical(netId, permission); in NetworkCreatePhysical()
74 int32_t NetsysController::NetworkCreateVirtual(int32_t netId, bool hasDns) in NetworkCreateVirtual() argument
76 NETMGR_LOG_I("Create Virtual network: netId[%{public}d], hasDns[%{public}d]", netId, hasDns); in NetworkCreateVirtual()
81 return netsysService_->NetworkCreateVirtual(netId, hasDns); in NetworkCreateVirtual()
84 int32_t NetsysController::NetworkDestroy(int32_t netId) in NetworkDestroy() argument
86 NETMGR_LOG_I("Destroy network: netId[%{public}d]", netId); in NetworkDestroy()
91 return netsysService_->NetworkDestroy(netId); in NetworkDestroy()
115 int32_t NetsysController::NetworkAddUids(int32_t netId, const std::vector<int32_t> &beginUids, in NetworkAddUids() argument
118 NETMGR_LOG_I("Destroy network: netId[%{public}d]", netId); in NetworkAddUids()
131 return netsysService_->NetworkAddUids(netId, uidRanges); in NetworkAddUids()
134 int32_t NetsysController::NetworkDelUids(int32_t netId, const std::vector<int32_t> &beginUids, in NetworkDelUids() argument
137 NETMGR_LOG_I("Destroy network: netId[%{public}d]", netId); in NetworkDelUids()
150 return netsysService_->NetworkDelUids(netId, uidRanges); in NetworkDelUids()
153 int32_t NetsysController::NetworkAddInterface(int32_t netId, const std::string &iface, NetBearType … in NetworkAddInterface() argument
155 …NETMGR_LOG_I("Add network interface: netId[%{public}d], iface[%{public}s, bearerType[%{public}u]]"… in NetworkAddInterface()
161 return netsysService_->NetworkAddInterface(netId, iface, netBearerType); in NetworkAddInterface()
164 int32_t NetsysController::NetworkRemoveInterface(int32_t netId, const std::string &iface) in NetworkRemoveInterface() argument
166 …NETMGR_LOG_I("Remove network interface: netId[%{public}d], iface[%{public}s]", netId, iface.c_str(… in NetworkRemoveInterface()
171 return netsysService_->NetworkRemoveInterface(netId, iface); in NetworkRemoveInterface()
174 int32_t NetsysController::NetworkAddRoute(int32_t netId, const std::string &ifName, const std::stri… in NetworkAddRoute() argument
177 …NETMGR_LOG_D("Add Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHop[%… in NetworkAddRoute()
178netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str()); in NetworkAddRoute()
183 return netsysService_->NetworkAddRoute(netId, ifName, destination, nextHop); in NetworkAddRoute()
186 int32_t NetsysController::NetworkRemoveRoute(int32_t netId, const std::string &ifName, const std::s… in NetworkRemoveRoute() argument
189 …NETMGR_LOG_D("Remove Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHo… in NetworkRemoveRoute()
190netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str()); in NetworkRemoveRoute()
195 return netsysService_->NetworkRemoveRoute(netId, ifName, destination, nextHop); in NetworkRemoveRoute()
334 int32_t NetsysController::SetResolverConfig(uint16_t netId, uint16_t baseTimeoutMsec, uint8_t retry… in SetResolverConfig() argument
338 NETMGR_LOG_I("Set resolver config: netId[%{public}d]", netId); in SetResolverConfig()
343 return netsysService_->SetResolverConfig(netId, baseTimeoutMsec, retryCount, servers, domains); in SetResolverConfig()
346 int32_t NetsysController::GetResolverConfig(uint16_t netId, std::vector<std::string> &servers, in GetResolverConfig() argument
350 NETMGR_LOG_I("Get resolver config: netId[%{public}d]", netId); in GetResolverConfig()
355 return netsysService_->GetResolverConfig(netId, servers, domains, baseTimeoutMsec, retryCount); in GetResolverConfig()
358 int32_t NetsysController::CreateNetworkCache(uint16_t netId) in CreateNetworkCache() argument
360 NETMGR_LOG_I("create dns cache: netId[%{public}d]", netId); in CreateNetworkCache()
365 return netsysService_->CreateNetworkCache(netId); in CreateNetworkCache()
368 int32_t NetsysController::DestroyNetworkCache(uint16_t netId) in DestroyNetworkCache() argument
370 NETMGR_LOG_I("Destroy dns cache: netId[%{public}d]", netId); in DestroyNetworkCache()
375 return netsysService_->DestroyNetworkCache(netId); in DestroyNetworkCache()
379 uint16_t netId, std::vector<AddrInfo> &res) in GetAddrInfo() argument
385 return netsysService_->GetAddrInfo(hostName, serverName, hints, netId, res); in GetAddrInfo()
539 int32_t NetsysController::SetDefaultNetWork(int32_t netId) in SetDefaultNetWork() argument
541 NETMGR_LOG_D("Set DefaultNetWork: netId[%{public}d]", netId); in SetDefaultNetWork()
546 return netsysService_->SetDefaultNetWork(netId); in SetDefaultNetWork()
559 int32_t NetsysController::BindSocket(int32_t socketFd, uint32_t netId) in BindSocket() argument
561 NETMGR_LOG_D("NetsysController::BindSocket: netId = [%{public}u]", netId); in BindSocket()
566 return netsysService_->BindSocket(socketFd, netId); in BindSocket()
633 int32_t NetsysController::ShareDnsSet(uint16_t netId) in ShareDnsSet() argument
635 NETMGR_LOG_I("ShareDnsSet: netId[%{public}d]", netId); in ShareDnsSet()
640 return netsysService_->ShareDnsSet(netId); in ShareDnsSet()
1239 int32_t NetsysController::StartClat(const std::string &interfaceName, int32_t netId, const std::str… in StartClat() argument
1245 return netsysService_->StartClat(interfaceName, netId, nat64PrefixStr); in StartClat()