/foundation/communication/dhcp/test/unittest/services/dhcp_client/ |
H A D | mock_custom_func.cpp | 74 Ip4StrConToInt(cliIp, &uCliIp, false); in __wrap_GetDhcpRawPacket() 75 Ip4StrConToInt(serIp, &uSerIp, false); in __wrap_GetDhcpRawPacket() 109 Ip4StrConToInt(cliIp, &uCliIp, false); in __wrap_GetDhcpKernelPacket() 110 Ip4StrConToInt(serIp, &uSerIp, false); in __wrap_GetDhcpKernelPacket()
|
H A D | dhcp_function_test.cpp | 45 EXPECT_EQ(true, Ip4StrConToInt(serIp, &uSerIp, true)); in HWTEST_F() 52 EXPECT_EQ(false, Ip4StrConToInt(serIp, &uSerIp, true)); in HWTEST_F() 56 EXPECT_EQ(false, Ip4StrConToInt(serIp1, &uSerIp1, true)); in HWTEST_F()
|
/foundation/communication/dhcp/services/dhcp_client/include/ |
H A D | dhcp_function.h | 26 bool Ip4StrConToInt(const char *strIp, uint32_t *uIp, bool bHost);
|
/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_function.cpp | 36 bool DhcpFunction::Ip4StrConToInt(const std::string& strIp, uint32_t& uIp, bool bHost) in Ip4StrConToInt() function in OHOS::DHCP::DhcpFunction 39 DHCP_LOGE("Ip4StrConToInt error, strIp is empty()!"); in Ip4StrConToInt() 46 DHCP_LOGE("Ip4StrConToInt strIp:%{private}s failed, nRet:%{public}d!", strIp.c_str(), nRet); in Ip4StrConToInt() 48 DHCP_LOGE("Ip4StrConToInt strIp:%{private}s not in presentation format!", strIp.c_str()); in Ip4StrConToInt() 50 DHCP_LOGE("Ip4StrConToInt strIp:%{private}s inet_pton not contain a valid address!", strIp.c_str()); in Ip4StrConToInt() 161 if (!Ip4StrConToInt(strIp, uIp)) { in CheckIpStr() 162 DHCP_LOGE("CheckIpStr Ip4StrConToInt failed, strIp:%{private}s.", strIp.c_str()); in CheckIpStr() 285 if (!Ip4StrConToInt(strIp, uIp, false) || !Ip4StrConToInt(strMask, uMask, false) || in CheckRangeNetwork() 286 !Ip4StrConToInt(strBegi in CheckRangeNetwork() [all...] |
H A D | dhcp_server_service_impl.cpp | 714 if (!DhcpFunction::Ip4StrConToInt(range.strStartip, uStartIp)) { in CheckIpAddrRange() 715 DHCP_LOGE("CheckIpAddrRange Ip4StrConToInt failed, range.iptype:%{public}d,strStartip:%{private}s!", in CheckIpAddrRange() 720 if (!DhcpFunction::Ip4StrConToInt(range.strEndip, uEndIp)) { in CheckIpAddrRange() 721 DHCP_LOGE("CheckIpAddrRange Ip4StrConToInt failed, range.iptype:%{public}d,strEndip:%{private}s!", in CheckIpAddrRange()
|
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/ |
H A D | dhcp_function_test.cpp | 46 EXPECT_EQ(true, DhcpFunction::Ip4StrConToInt(strIp, uSerIp)); in HWTEST_F() 54 EXPECT_EQ(false, DhcpFunction::Ip4StrConToInt(strIp, uSerIp)); in HWTEST_F() 58 EXPECT_EQ(false, DhcpFunction::Ip4StrConToInt(strIp, uSerIp)); in HWTEST_F()
|
/foundation/communication/dhcp/services/dhcp_server/include/ |
H A D | dhcp_function.h | 36 static bool Ip4StrConToInt(const std::string& strIp, uint32_t& uIp, bool bHost = true);
|
/foundation/communication/dhcp/services/dhcp_client/src/ |
H A D | dhcp_function.cpp | 38 bool Ip4StrConToInt(const char *strIp, uint32_t *uIp, bool bHost) in Ip4StrConToInt() function 41 DHCP_LOGE("Ip4StrConToInt failed, strIp == NULL or \"\"!"); in Ip4StrConToInt() 48 DHCP_LOGE("Ip4StrConToInt strIp:%{private}s failed, inet_pton nRet:%{public}d!", strIp, nRet); in Ip4StrConToInt() 50 DHCP_LOGE("Ip4StrConToInt strIp:%{private}s not in presentation format!", strIp); in Ip4StrConToInt() 52 DHCP_LOGE("Ip4StrConToInt strIp:%{private}s inet_pton does not contain a valid address family!", strIp); in Ip4StrConToInt() 248 if (!Ip4StrConToInt(strIp, &hostIp, true)) { in GetLocalIp() 249 DHCP_LOGE("GetLocalIp() %{public}s failed, Ip4StrConToInt strIp:%{private}s error!", ifname, strIp); in GetLocalIp()
|
H A D | dhcp_client_state_machine.cpp | 728 if (!Ip4StrConToInt(ipInfoCached.ipResult.strYiaddr, &lastAssignedIpv4Addr, false)) { in Reboot()
|
/foundation/communication/dhcp/test/fuzztest/dhcpfunction_fuzzer/ |
H A D | dhcpfunction_fuzzer.cpp | 37 pDhcpFunction->Ip4StrConToInt(strIp, uIp, bHost); in Ip4StrConToIntTest()
|