Home
last modified time | relevance | path

Searched refs:uIp (Results 1 - 7 of 7) sorted by relevance

/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_function.cpp36 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, strI in Ip4IntConvertToStr()
160 uint32_t uIp = 0; CheckIpStr() local
284 uint32_t uIp, uMask, uBegin, uEnd; CheckRangeNetwork() local
[all...]
/foundation/communication/dhcp/services/utils/src/
H A Ddhcp_common_utils.cpp48 char *UintIp4ToStr(uint32_t uIp, bool bHost) in UintIp4ToStr() argument
53 addr4.s_addr = htonl(uIp); in UintIp4ToStr()
55 addr4.s_addr = uIp; in UintIp4ToStr()
/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_function.h36 static bool Ip4StrConToInt(const std::string& strIp, uint32_t& uIp, bool bHost = true);
37 static std::string Ip4IntConvertToStr(uint32_t uIp, bool bHost = true);
/foundation/communication/dhcp/test/fuzztest/dhcpfunction_fuzzer/
H A Ddhcpfunction_fuzzer.cpp34 uint32_t uIp = static_cast<uint32_t>(data[index++]); in Ip4StrConToIntTest() local
37 pDhcpFunction->Ip4StrConToInt(strIp, uIp, bHost); in Ip4StrConToIntTest()
43 uint32_t uIp = static_cast<uint32_t>(data[index++]); in Ip4IntConvertToStrTest() local
45 pDhcpFunction->Ip4IntConvertToStr(uIp, bHost); in Ip4IntConvertToStrTest()
/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_function.h26 bool Ip4StrConToInt(const char *strIp, uint32_t *uIp, bool bHost);
/foundation/communication/dhcp/services/utils/include/
H A Ddhcp_common_utils.h33 char *UintIp4ToStr(uint32_t uIp, bool bHost);
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_function.cpp38 bool Ip4StrConToInt(const char *strIp, uint32_t *uIp, bool bHost) in Ip4StrConToInt() argument
58 *uIp = ntohl(addr4.s_addr); in Ip4StrConToInt()
60 *uIp = addr4.s_addr; in Ip4StrConToInt()
78 DHCP_LOGE("Ip4IntConvertToStr uIp:%{private}u failed, inet_ntop nullptr!", ip); in Ip4IntConvertToStr()
81 DHCP_LOGI("Ip4IntConvertToStr uIp:%{private}u -> strIp:%{private}s.", ip, strIp.c_str()); in Ip4IntConvertToStr()

Completed in 4 milliseconds