Home
last modified time | relevance | path

Searched refs:ipv4VerifyIpAndGetBitcount (Results 1 – 4 of 4) sorted by relevance

/openbmc/bmcweb/test/redfish-core/include/utils/
H A Dip_utils_test.cpp40 TEST(ipv4VerifyIpAndGetBitcount, PositiveTests) in TEST() argument
42 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("192.168.1.1", nullptr)); in TEST()
45 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("128.0.0.0", &bits)); in TEST()
47 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("192.0.0.0", &bits)); in TEST()
49 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("224.0.0.0", &bits)); in TEST()
51 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("240.0.0.0", &bits)); in TEST()
53 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("248.0.0.0", &bits)); in TEST()
55 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("252.0.0.0", &bits)); in TEST()
57 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("254.0.0.0", &bits)); in TEST()
59 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.0.0.0", &bits)); in TEST()
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Dip_utils.hpp46 inline bool ipv4VerifyIpAndGetBitcount(const std::string& ip, in ipv4VerifyIpAndGetBitcount() function
/openbmc/bmcweb/redfish-core/lib/
H A Dhypervisor_system.hpp573 if (!ip_util::ipv4VerifyIpAndGetBitcount(address)) in handleHypervisorIPv4StaticPatch()
580 if (!ip_util::ipv4VerifyIpAndGetBitcount(subnetMask, &prefixLength)) in handleHypervisorIPv4StaticPatch()
587 if (!ip_util::ipv4VerifyIpAndGetBitcount(gateway)) in handleHypervisorIPv4StaticPatch()
H A Dethernet.hpp1573 if (!ip_util::ipv4VerifyIpAndGetBitcount(*address)) in parseAddresses()
1595 if (!ip_util::ipv4VerifyIpAndGetBitcount(*subnetMask, in parseAddresses()
1615 ip_util::ipv4VerifyIpAndGetBitcount(nicIpEntry->netmask, in parseAddresses()
1622 if (!ip_util::ipv4VerifyIpAndGetBitcount(*gateway)) in parseAddresses()