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

Method IsRFC5737

src/netaddress.cpp:334–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334bool CNetAddr::IsRFC5737() const
335{
336 return IsIPv4() && (HasPrefix(m_addr, std::array<uint8_t, 3>{192, 0, 2}) ||
337 HasPrefix(m_addr, std::array<uint8_t, 3>{198, 51, 100}) ||
338 HasPrefix(m_addr, std::array<uint8_t, 3>{203, 0, 113}));
339}
340
341bool CNetAddr::IsRFC3849() const
342{

Callers 1

FUZZ_TARGETFunction · 0.80

Calls 2

IsIPv4Function · 0.85
HasPrefixFunction · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.64