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

Function cli_neigh_v6

dpdk/app/graph/neigh.c:261–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261static void
262cli_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
284static void
285cli_neigh_help(__rte_unused void *parsed_result, __rte_unused struct cmdline *cl,

Callers

nothing calls this directly

Calls 4

parser_ip6_readFunction · 0.85
parser_mac_readFunction · 0.85
neigh_ip6_addFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected