Lines Matching refs:iface

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