| 94 | } |
| 95 | |
| 96 | af_e af_from_enum_string(const std::string_view &view) { |
| 97 | if (view == "ipv4") { |
| 98 | return IPV4; |
| 99 | } |
| 100 | if (view == "both") { |
| 101 | return BOTH; |
| 102 | } |
| 103 | |
| 104 | // avoid warning |
| 105 | return BOTH; |
| 106 | } |
| 107 | |
| 108 | std::string_view af_to_any_address_string(af_e af) { |
| 109 | switch (af) { |
no outgoing calls
no test coverage detected