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

Method IsRFC5737

src/netaddress.cpp:345–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345bool CNetAddr::IsRFC5737() const
346{
347 return IsIPv4() && (HasPrefix(m_addr, std::array<uint8_t, 3>{192, 0, 2}) ||
348 HasPrefix(m_addr, std::array<uint8_t, 3>{198, 51, 100}) ||
349 HasPrefix(m_addr, std::array<uint8_t, 3>{203, 0, 113}));
350}
351
352bool CNetAddr::IsRFC3849() const
353{

Callers 1

FUZZ_TARGETFunction · 0.80

Calls 1

HasPrefixFunction · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.64