MCPcopy Create free account
hub / github.com/LUX-Core/lux / IsRFC1918

Method IsRFC1918

src/netbase.cpp:693–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693bool CNetAddr::IsRFC1918() const
694{
695 return IsIPv4() && (GetByte(3) == 10 ||
696 (GetByte(3) == 192 && GetByte(2) == 168) ||
697 (GetByte(3) == 172 && (GetByte(2) >= 16 && GetByte(2) <= 31)));
698}
699
700bool CNetAddr::IsRFC2544() const
701{

Callers 2

ProcessMasternodeFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

GetByteFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64