| 387 | } |
| 388 | |
| 389 | int |
| 390 | parse_ipv6_addr(const char *token, struct in6_addr *ipv6) |
| 391 | { |
| 392 | if (strlen(token) >= INET6_ADDRSTRLEN) |
| 393 | return -EINVAL; |
| 394 | |
| 395 | if (inet_pton(AF_INET6, token, ipv6) != 1) |
| 396 | return -EINVAL; |
| 397 | |
| 398 | return 0; |
| 399 | } |
| 400 | |
| 401 | int |
| 402 | parse_mac_addr(const char *token, struct rte_ether_addr *addr) |
no test coverage detected