Lines Matching refs:iface

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,
202 iface.c_str(), netBearerType);
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);
276 int32_t NetsysController::SetInterfaceDown(const std::string &iface)
278 NETMGR_LOG_I("Set interface down: iface[%{public}s]", iface.c_str());
285 return netsysService_->SetInterfaceDown(iface);
288 int32_t NetsysController::SetInterfaceUp(const std::string &iface)
290 NETMGR_LOG_I("Set interface up: iface[%{public}s]", iface.c_str());
297 return netsysService_->SetInterfaceUp(iface);
883 int32_t NetsysController::StartDhcpClient(const std::string &iface, bool bIpv6)
885 NETMGR_LOG_I("StartDhcpClient: iface[%{public}s], bIpv6[%{public}d]", iface.c_str(), bIpv6);
892 return netsysService_->StartDhcpClient(iface, bIpv6);
895 int32_t NetsysController::StopDhcpClient(const std::string &iface, bool bIpv6)
897 NETMGR_LOG_I("StopDhcpClient: iface[%{public}s], bIpv6[%{public}d]", iface.c_str(), bIpv6);
904 return netsysService_->StopDhcpClient(iface, bIpv6);
919 int32_t NetsysController::StartDhcpService(const std::string &iface, const std::string &ipv4addr)
921 NETMGR_LOG_I("StartDhcpService: iface[%{public}s], ipv4addr[%{public}s]",
922 iface.c_str(), ToAnonymousIp(ipv4addr).c_str());
929 return netsysService_->StartDhcpService(iface, ipv4addr);
932 int32_t NetsysController::StopDhcpService(const std::string &iface)
934 NETMGR_LOG_I("StopDhcpService: ifaceFd[%{public}s]", iface.c_str());
941 return netsysService_->StopDhcpService(iface);