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 | 38 TEST(ipv4VerifyIpAndGetBitcount, PositiveTests) in TEST() argument 40 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("192.168.1.1", nullptr)); in TEST() 43 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("128.0.0.0", &bits)); in TEST() 45 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("192.0.0.0", &bits)); in TEST() 47 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("224.0.0.0", &bits)); in TEST() 49 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("240.0.0.0", &bits)); in TEST() 51 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("248.0.0.0", &bits)); in TEST() 53 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("252.0.0.0", &bits)); in TEST() 55 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("254.0.0.0", &bits)); in TEST() 57 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.0.0.0", &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 | 557 if (!ip_util::ipv4VerifyIpAndGetBitcount(address)) in handleHypervisorIPv4StaticPatch() 564 if (!ip_util::ipv4VerifyIpAndGetBitcount(subnetMask, &prefixLength)) in handleHypervisorIPv4StaticPatch() 571 if (!ip_util::ipv4VerifyIpAndGetBitcount(gateway)) in handleHypervisorIPv4StaticPatch()
|
H A D | ethernet.hpp | 1559 if (!ip_util::ipv4VerifyIpAndGetBitcount(*address)) in parseAddresses() 1581 if (!ip_util::ipv4VerifyIpAndGetBitcount(*subnetMask, in parseAddresses() 1601 ip_util::ipv4VerifyIpAndGetBitcount(nicIpEntry->netmask, in parseAddresses() 1608 if (!ip_util::ipv4VerifyIpAndGetBitcount(*gateway)) in parseAddresses()
|