| 705 | "tap <tap_name>\n"; |
| 706 | |
| 707 | static void |
| 708 | cmd_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 | |
| 731 | static const char cmd_cryptodev_help[] = |
no test coverage detected