Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitcoin/bitcoin
/ IsRFC4843
Method
IsRFC4843
src/netaddress.cpp:381–385 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
379
}
380
381
bool CNetAddr::IsRFC4843() const
382
{
383
return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 3>{0x20, 0x01, 0x00}) &&
384
(m_addr[3] & 0xF0) == 0x10;
385
}
386
387
bool CNetAddr::IsRFC7343() const
388
{
Callers
2
BOOST_AUTO_TEST_CASE
Function · 0.80
FUZZ_TARGET
Function · 0.80
Calls
2
IsIPv6
Function · 0.85
HasPrefix
Function · 0.85
Tested by
2
BOOST_AUTO_TEST_CASE
Function · 0.64
FUZZ_TARGET
Function · 0.64