MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsRFC6052

Method IsRFC6052

src/netaddress.cpp:362–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362bool CNetAddr::IsRFC6052() const
363{
364 return IsIPv6() &&
365 HasPrefix(m_addr, std::array<uint8_t, 12>{0x00, 0x64, 0xFF, 0x9B, 0x00, 0x00,
366 0x00, 0x00, 0x00, 0x00, 0x00, 0x00});
367}
368
369bool CNetAddr::IsRFC4380() const
370{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls 1

HasPrefixFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64