Home
last modified time | relevance | path

Searched refs:DhcpFunction (Results 1 - 6 of 6) sorted by relevance

/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_function_test.cpp46 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()
64 std::string strIp = DhcpFunction::Ip4IntConvertToStr(uSerIp); in HWTEST_F()
72 std::string strIp = DhcpFunction::Ip4IntConvertToStr(uSerIp); in HWTEST_F()
80 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()
96 EXPECT_STREQ(DhcpFunction::Ip6CharConToStr(addr6, sizeof(struct in6_addr)).c_str(), ""); in HWTEST_F()
102 EXPECT_STREQ(DhcpFunction in HWTEST_F()
[all...]
H A Ddhcp_server_service_impl_test.cpp139 ASSERT_TRUE(DhcpFunction::CreateFile(strFile, strTestData)); in HWTEST_F()
142 ASSERT_TRUE(DhcpFunction::RemoveFile(strFile)); in HWTEST_F()
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_function.cpp31 DEFINE_DHCPLOG_DHCP_LABEL("DhcpFunction");
36 bool DhcpFunction::Ip4StrConToInt(const std::string& strIp, uint32_t& uIp, bool bHost) in Ip4StrConToInt()
64 std::string DhcpFunction::Ip4IntConvertToStr(uint32_t uIp, bool bHost) in Ip4IntConvertToStr()
85 bool DhcpFunction::Ip6StrConToChar(const std::string& strIp, uint8_t chIp[], size_t uSize) in Ip6StrConToChar()
114 std::string DhcpFunction::Ip6CharConToStr(uint8_t chIp[], int size) in Ip6CharConToStr()
137 bool DhcpFunction::CheckIpStr(const std::string& strIp) in CheckIpStr()
176 int DhcpFunction::GetLocalIp(const std::string strInf, std::string& strIp, std::string& strMask) in GetLocalIp()
228 int DhcpFunction::GetLocalMac(const std::string ethInf, std::string& ethMac) in GetLocalMac()
271 int DhcpFunction::CheckRangeNetwork(const std::string strInf, const std::string strBegin, const std::string strEnd) in CheckRangeNetwork()
302 bool DhcpFunction
[all...]
H A Ddhcp_server_service_impl.cpp239 if (DhcpFunction::GetLocalIp(ifname, localIp, netmask) != DHCP_OPT_SUCCESS) { in StartDhcpServer()
503 if (DhcpFunction::CheckRangeNetwork(ifname, range.strStartip, range.strEndip) != DHCP_OPT_SUCCESS) { in SetDhcpRange()
573 if (DhcpFunction::CheckRangeNetwork(ifname, iterTagValue.strStartip, iterTagValue.strEndip) != in SetDhcpNameExt()
624 if (!DhcpFunction::IsExistFile(strFile)) { in GetDhcpClientInfos()
658 if (!DhcpFunction::IsExistFile(strFile)) { in UpdateLeasesTime()
659 DhcpFunction::CreateFile(strFile, strData); in UpdateLeasesTime()
661 DhcpFunction::RemoveFile(strFile); in UpdateLeasesTime()
662 DhcpFunction::CreateFile(strFile, strData); in UpdateLeasesTime()
714 if (!DhcpFunction::Ip4StrConToInt(range.strStartip, uStartIp)) { in CheckIpAddrRange()
720 if (!DhcpFunction in CheckIpAddrRange()
[all...]
/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_function.h31 class DhcpFunction { class
33 DhcpFunction() {} in DhcpFunction() function in OHOS::DHCP::DhcpFunction
34 ~DhcpFunction() {} in ~DhcpFunction()
/foundation/communication/dhcp/test/fuzztest/dhcpfunction_fuzzer/
H A Ddhcpfunction_fuzzer.cpp29 std::shared_ptr<DhcpFunction> pDhcpFunction = std::make_shared<DhcpFunction>();

Completed in 4 milliseconds