MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsRFC7343

Method IsRFC7343

src/netaddress.cpp:387–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387bool CNetAddr::IsRFC7343() const
388{
389 return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 3>{0x20, 0x01, 0x00}) &&
390 (m_addr[3] & 0xF0) == 0x20;
391}
392
393bool CNetAddr::IsHeNet() const
394{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls 2

IsIPv6Function · 0.85
HasPrefixFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64