| 37 | }; |
| 38 | |
| 39 | net_e from_enum_string(const std::string_view &view) { |
| 40 | if (view == "wan") { |
| 41 | return WAN; |
| 42 | } |
| 43 | if (view == "lan") { |
| 44 | return LAN; |
| 45 | } |
| 46 | |
| 47 | return PC; |
| 48 | } |
| 49 | |
| 50 | net_e from_address(const std::string_view &view) { |
| 51 | auto addr = normalize_address(ip::make_address(view)); |