| 143 | } |
| 144 | |
| 145 | std::vector<std::string> GetNetworkNames(bool append_unroutable) { |
| 146 | std::vector<std::string> names; |
| 147 | for (int n = 0; n < NET_MAX; ++n) { |
| 148 | const enum Network network { static_cast<Network>(n) }; |
| 149 | if (network == NET_UNROUTABLE || network == NET_CJDNS || |
| 150 | network == NET_INTERNAL) { |
| 151 | continue; |
| 152 | } |
| 153 | names.emplace_back(GetNetworkName(network)); |
| 154 | } |
| 155 | if (append_unroutable) { |
| 156 | names.emplace_back(GetNetworkName(NET_UNROUTABLE)); |
| 157 | } |
| 158 | return names; |
| 159 | } |
| 160 | |
| 161 | static std::vector<CNetAddr> LookupIntern(const std::string &name, |
| 162 | unsigned int nMaxSolutions, |
no test coverage detected