Lines Matching defs:strInf
176 int DhcpFunction::GetLocalIp(const std::string strInf, std::string& strIp, std::string& strMask)
178 if (strInf.empty()) {
179 DHCP_LOGE("GetLocalIp param error, strInf is empty!");
185 DHCP_LOGE("GetLocalIp strInf:%{public}s failed, socket err:%{public}d!", strInf.c_str(), errno);
194 if (strncpy_s(iface.ifr_name, IFNAMSIZ, strInf.c_str(), IFNAMSIZ - 1) != EOK) {
202 DHCP_LOGE("GetLocalIp() %{public}s failed, SIOCGIFADDR err:%{public}d!", strInf.c_str(), errno);
214 DHCP_LOGE("GetLocalIp() %{public}s failed, SIOCGIFNETMASK err:%{public}d!", strInf.c_str(), errno);
271 int DhcpFunction::CheckRangeNetwork(const std::string strInf, const std::string strBegin, const std::string strEnd)
273 if (strInf.empty() || strBegin.empty() || strEnd.empty()) {
274 DHCP_LOGE("CheckRangeNetwork param error, strInf or strBegin or strEnd is empty!");
279 if (GetLocalIp(strInf, strIp, strMask) != DHCP_OPT_SUCCESS) {
280 DHCP_LOGE("CheckRangeNetwork get %{public}s local ip failed", strInf.c_str());
287 DHCP_LOGE("CheckRangeNetwork %{public}s Ip4StrConToInt failed", strInf.c_str());
292 DHCP_LOGE("Check %{public}s %{private}s %{public}s failed", strInf.c_str(), strIp.c_str(), strBegin.c_str());
296 DHCP_LOGE("Check end %{public}s %{private}s %{public}s failed", strInf.c_str(), strIp.c_str(), strEnd.c_str());