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