Lines Matching refs:iface
81 void DhcpController::StartClient(const std::string &iface, bool bIpv6) in StartClient() argument
86 if (RegisterDhcpClientCallBack(iface.c_str(), &clientEvent) != DHCP_SUCCESS) { in StartClient()
91 …NETNATIVE_LOGI("DhcpController StartDhcpClient iface[%{public}s] ipv6[%{public}d]", iface.c_str(),… in StartClient()
92 if (StartDhcpClient(iface.c_str(), bIpv6) != DHCP_SUCCESS) { in StartClient()
97 void DhcpController::StopClient(const std::string &iface, bool bIpv6) in StopClient() argument
99 …NETNATIVE_LOGI("DhcpController StopDhcpClient iface[%{public}s] ipv6[%{public}d]", iface.c_str(), … in StopClient()
100 if (StopDhcpClient(iface.c_str(), bIpv6) != DHCP_SUCCESS) { in StopClient()
105 void DhcpController::Process(const std::string &iface, DhcpResult *result) in Process() argument
112 ptr->iface_ = iface; in Process()
120 NETNATIVE_LOGI("DhcpController Process iface[%{public}s]", iface.c_str()); in Process()
124 bool DhcpController::StartDhcpService(const std::string &iface, const std::string &ipv4addr) in StartDhcpService() argument
140 if (strcpy_s(range.strTagName, DHCP_MAX_FILE_BYTES, iface.c_str()) != 0) { in StartDhcpService()
160 if (SetDhcpRange(iface.c_str(), &range) != DHCP_SUCCESS) { in StartDhcpService()
166 iface.c_str(), range.strTagName, range.strStartip, range.strEndip); in StartDhcpService()
167 if (StartDhcpServer(iface.c_str()) != DHCP_SUCCESS) { in StartDhcpService()
168 NETNATIVE_LOGE("Start dhcp server failed!, iface:[%{public}s]", iface.c_str()); in StartDhcpService()
174 bool DhcpController::StopDhcpService(const std::string &iface) in StopDhcpService() argument
176 if (RemoveAllDhcpRange(iface.c_str()) != DHCP_SUCCESS) { in StopDhcpService()
177 NETNATIVE_LOGE("failed to remove [%{public}s] dhcp range.", iface.c_str()); in StopDhcpService()
180 if (StopDhcpServer(iface.c_str()) != DHCP_SUCCESS) { in StopDhcpService()
184 NETNATIVE_LOGI("StopDhcpService ifaceName[%{public}s]", iface.c_str()); in StopDhcpService()