Lines Matching refs:netId

68 int32_t NetsysController::NetworkCreatePhysical(int32_t netId, int32_t permission)
70 NETMGR_LOG_I("Create Physical network: netId[%{public}d], permission[%{public}d]", netId, permission);
77 return netsysService_->NetworkCreatePhysical(netId, permission);
80 int32_t NetsysController::NetworkCreateVirtual(int32_t netId, bool hasDns)
82 NETMGR_LOG_I("Create Virtual network: netId[%{public}d], hasDns[%{public}d]", netId, hasDns);
89 return netsysService_->NetworkCreateVirtual(netId, hasDns);
92 int32_t NetsysController::NetworkDestroy(int32_t netId)
94 NETMGR_LOG_I("Destroy network: netId[%{public}d]", netId);
101 return netsysService_->NetworkDestroy(netId);
157 int32_t NetsysController::NetworkAddUids(int32_t netId, const std::vector<int32_t> &beginUids,
160 NETMGR_LOG_I("Destroy network: netId[%{public}d]", netId);
175 return netsysService_->NetworkAddUids(netId, uidRanges);
178 int32_t NetsysController::NetworkDelUids(int32_t netId, const std::vector<int32_t> &beginUids,
181 NETMGR_LOG_I("Destroy network: netId[%{public}d]", netId);
196 return netsysService_->NetworkDelUids(netId, uidRanges);
199 int32_t NetsysController::NetworkAddInterface(int32_t netId, const std::string &iface, NetBearType netBearerType)
201 NETMGR_LOG_I("Add network interface: netId[%{public}d], iface[%{public}s, bearerType[%{public}u]]", netId,
209 return netsysService_->NetworkAddInterface(netId, iface, netBearerType);
212 int32_t NetsysController::NetworkRemoveInterface(int32_t netId, const std::string &iface)
214 NETMGR_LOG_I("Remove network interface: netId[%{public}d], iface[%{public}s]", netId, iface.c_str());
221 return netsysService_->NetworkRemoveInterface(netId, iface);
224 int32_t NetsysController::NetworkAddRoute(int32_t netId, const std::string &ifName, const std::string &destination,
227 NETMGR_LOG_D("Add Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHop[%{public}s]",
228 netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str());
235 return netsysService_->NetworkAddRoute(netId, ifName, destination, nextHop);
238 int32_t NetsysController::NetworkRemoveRoute(int32_t netId, const std::string &ifName, const std::string &destination,
241 NETMGR_LOG_D("Remove Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHop[%{public}s]",
242 netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str());
249 return netsysService_->NetworkRemoveRoute(netId, ifName, destination, nextHop);
414 int32_t NetsysController::SetResolverConfig(uint16_t netId, uint16_t baseTimeoutMsec, uint8_t retryCount,
418 NETMGR_LOG_I("Set resolver config: netId[%{public}d]", netId);
425 return netsysService_->SetResolverConfig(netId, baseTimeoutMsec, retryCount, servers, domains);
428 int32_t NetsysController::GetResolverConfig(uint16_t netId, std::vector<std::string> &servers,
432 NETMGR_LOG_I("Get resolver config: netId[%{public}d]", netId);
439 return netsysService_->GetResolverConfig(netId, servers, domains, baseTimeoutMsec, retryCount);
442 int32_t NetsysController::CreateNetworkCache(uint16_t netId)
444 NETMGR_LOG_I("create dns cache: netId[%{public}d]", netId);
451 return netsysService_->CreateNetworkCache(netId);
454 int32_t NetsysController::DestroyNetworkCache(uint16_t netId)
456 NETMGR_LOG_I("Destroy dns cache: netId[%{public}d]", netId);
463 return netsysService_->DestroyNetworkCache(netId);
467 uint16_t netId, std::vector<AddrInfo> &res)
475 return netsysService_->GetAddrInfo(hostName, serverName, hints, netId, res);
659 int32_t NetsysController::SetDefaultNetWork(int32_t netId)
661 NETMGR_LOG_D("Set DefaultNetWork: netId[%{public}d]", netId);
668 return netsysService_->SetDefaultNetWork(netId);
683 int32_t NetsysController::BindSocket(int32_t socketFd, uint32_t netId)
685 NETMGR_LOG_D("NetsysController::BindSocket: netId = [%{public}u]", netId);
692 return netsysService_->BindSocket(socketFd, netId);
771 int32_t NetsysController::ShareDnsSet(uint16_t netId)
773 NETMGR_LOG_I("ShareDnsSet: netId[%{public}d]", netId);
780 return netsysService_->ShareDnsSet(netId);
1519 int32_t NetsysController::StartClat(const std::string &interfaceName, int32_t netId, const std::string &nat64PrefixStr)
1527 return netsysService_->StartClat(interfaceName, netId, nat64PrefixStr);