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

Method IsBindAny

src/netaddress.cpp:303–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303bool CNetAddr::IsBindAny() const
304{
305 if (!IsIPv4() && !IsIPv6()) {
306 return false;
307 }
308 return std::all_of(m_addr.begin(), m_addr.end(), [](uint8_t b) { return b == 0; });
309}
310
311bool CNetAddr::IsRFC1918() const
312{

Callers 8

InitHTTPServerFunction · 0.80
AppInitMainFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
ConnectMethod · 0.80
BindMethod · 0.80
FUZZ_TARGETFunction · 0.80
QueryDefaultGatewayImplFunction · 0.80
QueryDefaultGatewayFunction · 0.80

Calls 4

IsIPv4Function · 0.85
IsIPv6Function · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.64
ConnectMethod · 0.64
BindMethod · 0.64
FUZZ_TARGETFunction · 0.64