Home
last modified time | relevance | path

Searched refs:Ip6StrConToChar (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_function_test.cpp70 EXPECT_EQ(true, Ip6StrConToChar(serIp, addr6, sizeof(addr6))); in HWTEST_F()
77 EXPECT_EQ(false, Ip6StrConToChar(serIp, addr6, sizeof(addr6))); in HWTEST_F()
81 EXPECT_EQ(false, Ip6StrConToChar(serIp1, addr61, sizeof(addr61))); in HWTEST_F()
/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_function.h28 bool Ip6StrConToChar(const char *strIp, uint8_t chIp[], size_t chlen);
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_function_test.cpp80 EXPECT_EQ(true, DhcpFunction::Ip6StrConToChar(strIp, addr6, sizeof(struct in6_addr))); in HWTEST_F()
87 EXPECT_EQ(false, DhcpFunction::Ip6StrConToChar(strIp, addr6, sizeof(struct in6_addr))); in HWTEST_F()
90 EXPECT_EQ(false, DhcpFunction::Ip6StrConToChar(strIp, addr6, sizeof(struct in6_addr))); in HWTEST_F()
/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_function.h38 static bool Ip6StrConToChar(const std::string& strIp, uint8_t chIp[], size_t uSize);
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_function.cpp85 bool DhcpFunction::Ip6StrConToChar(const std::string& strIp, uint8_t chIp[], size_t uSize) in Ip6StrConToChar() function in OHOS::DHCP::DhcpFunction
88 DHCP_LOGE("Ip6StrConToChar param error, strIp is empty()!"); in Ip6StrConToChar()
98 DHCP_LOGE("Ip6StrConToChar inet_pton strIp:%{private}s failed, nRet:%{public}d!", strIp.c_str(), nRet); in Ip6StrConToChar()
100 DHCP_LOGE("Ip6StrConToChar strIp:%{private}s not in presentation format!", strIp.c_str()); in Ip6StrConToChar()
102 DHCP_LOGE("Ip6StrConToChar strIp:%{private}s inet_pton not contain a valid address!", strIp.c_str()); in Ip6StrConToChar()
167 if (!Ip6StrConToChar(strIp, addr6, sizeof(struct in6_addr))) { in CheckIpStr()
168 DHCP_LOGE("CheckIpStr Ip6StrConToChar failed, strIp:%{private}s.", strIp.c_str()); in CheckIpStr()
H A Ddhcp_server_service_impl.cpp732 if (!DhcpFunction::Ip6StrConToChar(range.strStartip, uStartIp6, sizeof(struct in6_addr))) { in CheckIpAddrRange()
736 if (!DhcpFunction::Ip6StrConToChar(range.strEndip, uEndIp6, sizeof(struct in6_addr))) { in CheckIpAddrRange()
/foundation/communication/dhcp/test/fuzztest/dhcpfunction_fuzzer/
H A Ddhcpfunction_fuzzer.cpp52 pDhcpFunction->Ip6StrConToChar(strIp, chIp, sizeof(struct in6_addr)); in Ip6StrConToCharTest()
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_function.cpp87 bool Ip6StrConToChar(const char *strIp, uint8_t chIp[], size_t chlen) in Ip6StrConToChar() function
90 DHCP_LOGE("Ip6StrConToChar failed, strIp == NULL or \"\"!"); in Ip6StrConToChar()
100 DHCP_LOGE("Ip6StrConToChar strIp:%{private}s failed, inet_pton nRet:%{public}d!", strIp, nRet); in Ip6StrConToChar()
102 DHCP_LOGE("Ip6StrConToChar strIp:%{private}s not in presentation format!", strIp); in Ip6StrConToChar()
104 DHCP_LOGE("Ip6StrConToChar strIp:%{private}s inet_pton does not contain a valid address family!", strIp); in Ip6StrConToChar()
109 DHCP_LOGI("Ip6StrConToChar strIp:%{private}s -> ", strIp); in Ip6StrConToChar()
111 DHCP_LOGI("Ip6StrConToChar addr6.s6_addr: %{private}zu - %{private}02x", i, addr6.s6_addr[i]); in Ip6StrConToChar()

Completed in 6 milliseconds