| 128 | } |
| 129 | |
| 130 | std::vector<std::string> GetNetworkNames(bool append_unroutable) |
| 131 | { |
| 132 | std::vector<std::string> names; |
| 133 | for (int n = 0; n < NET_MAX; ++n) { |
| 134 | const enum Network network{static_cast<Network>(n)}; |
| 135 | if (network == NET_UNROUTABLE || network == NET_INTERNAL) continue; |
| 136 | names.emplace_back(GetNetworkName(network)); |
| 137 | } |
| 138 | if (append_unroutable) { |
| 139 | names.emplace_back(GetNetworkName(NET_UNROUTABLE)); |
| 140 | } |
| 141 | return names; |
| 142 | } |
| 143 | |
| 144 | static std::vector<CNetAddr> LookupIntern(const std::string& name, unsigned int nMaxSolutions, bool fAllowLookup, DNSLookupFn dns_lookup_function) |
| 145 | { |
no test coverage detected