| 80 | } |
| 81 | |
| 82 | std::string_view to_enum_string(net_e net) { |
| 83 | switch (net) { |
| 84 | case PC: |
| 85 | return "pc"sv; |
| 86 | case LAN: |
| 87 | return "lan"sv; |
| 88 | case WAN: |
| 89 | return "wan"sv; |
| 90 | } |
| 91 | |
| 92 | // avoid warning |
| 93 | return "wan"sv; |
| 94 | } |
| 95 | |
| 96 | af_e af_from_enum_string(const std::string_view &view) { |
| 97 | if (view == "ipv4") { |
nothing calls this directly
no outgoing calls
no test coverage detected