| 27 | } |
| 28 | |
| 29 | static int8_t get_xdigit(char ch) |
| 30 | { |
| 31 | if (ch >= '0' && ch <= '9') |
| 32 | return ch - '0'; |
| 33 | if (ch >= 'a' && ch <= 'f') |
| 34 | return ch - 'a' + 10; |
| 35 | if (ch >= 'A' && ch <= 'F') |
| 36 | return ch - 'A' + 10; |
| 37 | return -1; |
| 38 | } |
| 39 | |
| 40 | /* Convert 00:11:22:33:44:55 to ethernet address */ |
| 41 | static bool get_ether_addr6(const char *s0, struct rte_ether_addr *ea, |
no outgoing calls
no test coverage detected