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

Method IsRFC4843

src/netaddress.cpp:392–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392bool CNetAddr::IsRFC4843() const
393{
394 return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 3>{0x20, 0x01, 0x00}) &&
395 (m_addr[3] & 0xF0) == 0x10;
396}
397
398bool CNetAddr::IsRFC7343() const
399{

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