Lines Matching defs:uIp
36 bool DhcpFunction::Ip4StrConToInt(const std::string& strIp, uint32_t& uIp, bool bHost)
56 uIp = ntohl(addr4.s_addr);
58 uIp = addr4.s_addr;
64 std::string DhcpFunction::Ip4IntConvertToStr(uint32_t uIp, bool bHost)
69 addr4.s_addr = htonl(uIp);
71 addr4.s_addr = uIp;
76 DHCP_LOGE("Ip4IntConvertToStr uIp:%{private}u failed, inet_ntop nullptr!", uIp);
79 DHCP_LOGI("Ip4IntConvertToStr uIp:%{private}u -> strIp:%{private}s.", uIp, strIp.c_str());
160 uint32_t uIp = 0;
161 if (!Ip4StrConToInt(strIp, uIp)) {
284 uint32_t uIp, uMask, uBegin, uEnd;
285 if (!Ip4StrConToInt(strIp, uIp, false) || !Ip4StrConToInt(strMask, uMask, false) ||
291 if (!CheckSameNetwork(uIp, uBegin, uMask)) {
295 if (!CheckSameNetwork(uIp, uEnd, uMask)) {