Lines Matching full:cmdl
22 #include "cmdl.h"
51 struct cmdl *cmdl, void *data)
56 fprintf(stderr, "Usage: %s link list\n", cmdl->argv[0]);
95 struct cmdl *cmdl, void *data)
115 (cmd->help)(cmdl);
119 if (parse_opts(opts, cmdl) < 0)
136 static void cmd_link_get_help(struct cmdl *cmdl)
143 cmdl->argv[0]);
147 struct cmdl *cmdl, void *data)
156 return run_cmd(nlh, cmd, cmds, cmdl, NULL);
159 static void cmd_link_stat_reset_help(struct cmdl *cmdl)
161 fprintf(stderr, "Usage: %s link stat reset link LINK\n\n", cmdl->argv[0]);
165 struct cmdl *cmdl, void *data)
177 (cmd->help)(cmdl);
181 if (parse_opts(opts, cmdl) != 1) {
182 (cmd->help)(cmdl);
355 static void cmd_link_stat_show_help(struct cmdl *cmdl)
358 cmdl->argv[0]);
362 struct cmdl *cmdl, void *data)
373 (cmd->help)(cmdl);
382 if (parse_opts(opts, cmdl) < 0)
391 static void cmd_link_stat_help(struct cmdl *cmdl)
397 cmdl->argv[0]);
401 struct cmdl *cmdl, void *data)
409 return run_cmd(nlh, cmd, cmds, cmdl, NULL);
412 static void cmd_link_set_help(struct cmdl *cmdl)
419 cmdl->argv[0]);
423 struct cmdl *cmdl, void *data)
446 (cmd->help)(cmdl);
450 if (cmdl->optind >= cmdl->argc) {
454 val = atoi(shift_cmdl(cmdl));
456 if (parse_opts(opts, cmdl) < 0)
483 struct cmdl *cmdl, void *data)
492 return run_cmd(nlh, cmd, cmds, cmdl, NULL);
495 void cmd_link_help(struct cmdl *cmdl)
505 cmdl->argv[0]);
508 int cmd_link(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl,
519 return run_cmd(nlh, cmd, cmds, cmdl, NULL);