| 259 | } |
| 260 | |
| 261 | static void |
| 262 | cli_neigh_v6(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused) |
| 263 | { |
| 264 | struct neigh_v6_cmd_tokens *res = parsed_result; |
| 265 | uint8_t ip[ETHDEV_IPV6_ADDR_LEN]; |
| 266 | int rc = -EINVAL; |
| 267 | uint64_t mac; |
| 268 | |
| 269 | if (parser_ip6_read(ip, res->ip)) { |
| 270 | printf(MSG_ARG_INVALID, "ip"); |
| 271 | return; |
| 272 | } |
| 273 | |
| 274 | if (parser_mac_read(&mac, res->mac)) { |
| 275 | printf(MSG_ARG_INVALID, "mac"); |
| 276 | return; |
| 277 | } |
| 278 | |
| 279 | rc = neigh_ip6_add(ip, mac); |
| 280 | if (rc < 0) |
| 281 | printf(MSG_CMD_FAIL, res->cmd); |
| 282 | } |
| 283 | |
| 284 | static void |
| 285 | cli_neigh_help(__rte_unused void *parsed_result, __rte_unused struct cmdline *cl, |
nothing calls this directly
no test coverage detected