MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cli_ip6_addr

Function cli_ip6_addr

dpdk/app/graph/ethdev.c:611–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611static void
612cli_ip6_addr(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
613{
614 struct ethdev_ip6_cmd_tokens *res = parsed_result;
615 struct ipv6_addr_config config;
616 int rc = -EINVAL;
617
618 if (parser_ip6_read(config.ip, res->ip)) {
619 printf(MSG_ARG_INVALID, "ip");
620 return;
621 }
622
623 if (parser_ip6_read(config.mask, res->mask)) {
624 printf(MSG_ARG_INVALID, "netmask");
625 return;
626 }
627
628 rc = ethdev_ip6_addr_add(res->dev, &config);
629 if (rc < 0)
630 printf(MSG_CMD_FAIL, res->cmd);
631}
632
633static void
634cli_ethdev_show(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)

Callers

nothing calls this directly

Calls 3

parser_ip6_readFunction · 0.85
ethdev_ip6_addr_addFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected