Searched refs:IPPrefix (Results 1 – 3 of 3) sorted by relevance
/system/netd/libnetdutils/ |
D | InternetAddressesTest.cpp | 175 IPPrefix prefix; in TEST() 177 EXPECT_FALSE(IPPrefix::forString("", &prefix)); in TEST() 178 EXPECT_FALSE(IPPrefix::forString("invalid", &prefix)); in TEST() 179 EXPECT_FALSE(IPPrefix::forString("192.0.2.0", &prefix)); in TEST() 180 EXPECT_FALSE(IPPrefix::forString("2001::db8::", &prefix)); in TEST() 182 EXPECT_FALSE(IPPrefix::forString("2001:db8::/", &prefix)); in TEST() 183 EXPECT_FALSE(IPPrefix::forString("2001:db8:://32", &prefix)); in TEST() 184 EXPECT_FALSE(IPPrefix::forString("2001:db8::/32z", &prefix)); in TEST() 185 EXPECT_FALSE(IPPrefix::forString("2001:db8::/32/", &prefix)); in TEST() 186 EXPECT_FALSE(IPPrefix::forString("2001:db8::/0x20", &prefix)); in TEST() [all …]
|
D | InternetAddresses.cpp | 91 IPPrefix::IPPrefix(const IPAddress& ip, int length) : IPPrefix(ip) { in IPPrefix() function in android::netdutils::IPPrefix 123 bool IPPrefix::isUninitialized() const noexcept { in isUninitialized() 128 bool IPPrefix::forString(const std::string& repr, IPPrefix* prefix) { in forString() 146 *prefix = IPPrefix(ip, prefixlen); in forString() 150 std::string IPPrefix::toString() const noexcept { in toString()
|
/system/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 121 class IPPrefix; variable 172 friend class IPPrefix; 196 class IPPrefix { 198 static bool forString(const std::string& repr, IPPrefix* prefix); 199 static IPPrefix forString(const std::string& repr) { in forString() 200 IPPrefix prefix; in forString() 201 if (!forString(repr, &prefix)) return IPPrefix(); in forString() 205 IPPrefix() = default; 206 IPPrefix(const IPPrefix&) = default; 207 IPPrefix(IPPrefix&&) = default; [all …]
|