Searched refs:ipv4VerifyIpAndGetBitcount (Results 1 – 4 of 4) sorted by relevance
/openbmc/bmcweb/test/redfish-core/include/utils/ |
H A D | ip_utils_test.cpp | 42 TEST(ipv4VerifyIpAndGetBitcount, PositiveTests) in TEST() argument 47 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("128.0.0.0", &bits)); in TEST() 49 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("192.0.0.0", &bits)); in TEST() 51 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("224.0.0.0", &bits)); in TEST() 53 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("240.0.0.0", &bits)); in TEST() 55 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("248.0.0.0", &bits)); in TEST() 57 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("252.0.0.0", &bits)); in TEST() 59 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("254.0.0.0", &bits)); in TEST() 109 TEST(ipv4VerifyIpAndGetBitcount, NegativeTests) in TEST() argument 124 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("1.1.1", &bits)); in TEST() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | ip_utils.hpp | 43 inline bool ipv4VerifyIpAndGetBitcount(const std::string& ip, in ipv4VerifyIpAndGetBitcount() function
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | hypervisor_system.hpp | 555 if (!ip_util::ipv4VerifyIpAndGetBitcount(address)) in handleHypervisorIPv4StaticPatch() 562 if (!ip_util::ipv4VerifyIpAndGetBitcount(subnetMask, &prefixLength)) in handleHypervisorIPv4StaticPatch() 569 if (!ip_util::ipv4VerifyIpAndGetBitcount(gateway)) in handleHypervisorIPv4StaticPatch()
|
H A D | ethernet.hpp | 1585 if (!ip_util::ipv4VerifyIpAndGetBitcount(*address)) in handleIPv4StaticPatch() 1606 if (!ip_util::ipv4VerifyIpAndGetBitcount(*subnetMask, in handleIPv4StaticPatch() 1617 if (!ip_util::ipv4VerifyIpAndGetBitcount(nicIpEntry->netmask, in handleIPv4StaticPatch() 1635 if (!ip_util::ipv4VerifyIpAndGetBitcount(*gateway)) in handleIPv4StaticPatch()
|