| 119 | } |
| 120 | |
| 121 | std::vector<std::string> GetNetworkNames(bool append_unroutable) |
| 122 | { |
| 123 | std::vector<std::string> names; |
| 124 | for (int n = 0; n < NET_MAX; ++n) { |
| 125 | const enum Network network{static_cast<Network>(n)}; |
| 126 | if (network == NET_UNROUTABLE || network == NET_INTERNAL) continue; |
| 127 | names.emplace_back(GetNetworkName(network)); |
| 128 | } |
| 129 | if (append_unroutable) { |
| 130 | names.emplace_back(GetNetworkName(NET_UNROUTABLE)); |
| 131 | } |
| 132 | return names; |
| 133 | } |
| 134 | |
| 135 | static bool LookupIntern(const std::string& name, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup, DNSLookupFn dns_lookup_function) |
| 136 | { |
no test coverage detected