| 112 | } |
| 113 | |
| 114 | std::string GetNetworkName(enum Network net) |
| 115 | { |
| 116 | switch (net) { |
| 117 | case NET_UNROUTABLE: return "not_publicly_routable"; |
| 118 | case NET_IPV4: return "ipv4"; |
| 119 | case NET_IPV6: return "ipv6"; |
| 120 | case NET_ONION: return "onion"; |
| 121 | case NET_I2P: return "i2p"; |
| 122 | case NET_CJDNS: return "cjdns"; |
| 123 | case NET_INTERNAL: return "internal"; |
| 124 | case NET_MAX: assert(false); |
| 125 | } // no default case, so the compiler can warn about missing cases |
| 126 | |
| 127 | assert(false); |
| 128 | } |
| 129 | |
| 130 | std::vector<std::string> GetNetworkNames(bool append_unroutable) |
| 131 | { |
no outgoing calls
no test coverage detected