| 43 | using Address = Ethernet::Address; |
| 44 | |
| 45 | Address::Address(const std::string &str) { |
| 46 | if (!FromString(str)) { |
| 47 | memset(bytes, 0, sizeof(bytes)); |
| 48 | }; |
| 49 | } |
| 50 | |
| 51 | bool Address::FromString(const std::string &str) { |
| 52 | int ret = Parse(str, "%2hhx:%2hhx:%2hhx:%2hhx:%2hhx:%2hhx", &bytes[0], |
nothing calls this directly
no outgoing calls
no test coverage detected