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

Function cmd_tap

dpdk/examples/ip_pipeline/cli.c:707–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705"tap <tap_name>\n";
706
707static void
708cmd_tap(char **tokens,
709 uint32_t n_tokens,
710 char *out,
711 size_t out_size)
712{
713 char *name;
714 struct tap *tap;
715
716 if (n_tokens != 2) {
717 snprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);
718 return;
719 }
720
721 name = tokens[1];
722
723 tap = tap_create(name);
724 if (tap == NULL) {
725 snprintf(out, out_size, MSG_CMD_FAIL, tokens[0]);
726 return;
727 }
728}
729
730
731static const char cmd_cryptodev_help[] =

Callers 1

cli_processFunction · 0.85

Calls 2

snprintfFunction · 0.85
tap_createFunction · 0.85

Tested by

no test coverage detected