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

Method IsRFC6145

src/netaddress.cpp:385–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385bool CNetAddr::IsRFC6145() const
386{
387 return IsIPv6() &&
388 HasPrefix(m_addr, std::array<uint8_t, 12>{0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
389 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00});
390}
391
392bool CNetAddr::IsRFC4843() const
393{

Callers 1

FUZZ_TARGETFunction · 0.80

Calls 1

HasPrefixFunction · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.64