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

Function GetExtNetwork

src/netbase.cpp:972–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970static const int NET_UNKNOWN = NET_MAX + 0;
971static const int NET_TEREDO = NET_MAX + 1;
972int static GetExtNetwork(const CNetAddr* addr)
973{
974 if (addr == NULL)
975 return NET_UNKNOWN;
976 if (addr->IsRFC4380())
977 return NET_TEREDO;
978 return addr->GetNetwork();
979}
980
981/** Calculates a metric for how reachable (*this) is from a given partner */
982int CNetAddr::GetReachabilityFrom(const CNetAddr* paddrPartner) const

Callers 1

GetReachabilityFromMethod · 0.85

Calls 2

IsRFC4380Method · 0.80
GetNetworkMethod · 0.80

Tested by

no test coverage detected