Lines Matching refs:cmdl
52 struct cmdl *cmdl, void *data) in cmd_link_list() argument
57 fprintf(stderr, "Usage: %s link list\n", cmdl->argv[0]); in cmd_link_list()
96 struct cmdl *cmdl, void *data) in cmd_link_get_prop() argument
116 (cmd->help)(cmdl); in cmd_link_get_prop()
120 if (parse_opts(opts, cmdl) < 0) in cmd_link_get_prop()
139 static void cmd_link_get_help(struct cmdl *cmdl) in cmd_link_get_help() argument
146 cmdl->argv[0]); in cmd_link_get_help()
150 struct cmdl *cmdl, void *data) in cmd_link_get() argument
159 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_get()
162 static void cmd_link_stat_reset_help(struct cmdl *cmdl) in cmd_link_stat_reset_help() argument
164 fprintf(stderr, "Usage: %s link stat reset link LINK\n\n", cmdl->argv[0]); in cmd_link_stat_reset_help()
168 struct cmdl *cmdl, void *data) in cmd_link_stat_reset() argument
180 (cmd->help)(cmdl); in cmd_link_stat_reset()
184 if (parse_opts(opts, cmdl) != 1) { in cmd_link_stat_reset()
185 (cmd->help)(cmdl); in cmd_link_stat_reset()
359 static void cmd_link_stat_show_help(struct cmdl *cmdl) in cmd_link_stat_show_help() argument
362 cmdl->argv[0]); in cmd_link_stat_show_help()
366 struct cmdl *cmdl, void *data) in cmd_link_stat_show() argument
377 (cmd->help)(cmdl); in cmd_link_stat_show()
387 if (parse_opts(opts, cmdl) < 0) in cmd_link_stat_show()
397 static void cmd_link_stat_help(struct cmdl *cmdl) in cmd_link_stat_help() argument
403 cmdl->argv[0]); in cmd_link_stat_help()
407 struct cmdl *cmdl, void *data) in cmd_link_stat() argument
415 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_stat()
418 static void cmd_link_set_help(struct cmdl *cmdl) in cmd_link_set_help() argument
425 cmdl->argv[0]); in cmd_link_set_help()
429 struct cmdl *cmdl, void *data) in cmd_link_set_prop() argument
452 (cmd->help)(cmdl); in cmd_link_set_prop()
456 if (cmdl->optind >= cmdl->argc) { in cmd_link_set_prop()
460 val = atoi(shift_cmdl(cmdl)); in cmd_link_set_prop()
462 if (parse_opts(opts, cmdl) < 0) in cmd_link_set_prop()
489 struct cmdl *cmdl, void *data) in cmd_link_set() argument
498 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_set()
502 struct cmdl *cmdl, void *data) in cmd_link_mon_set_prop() argument
508 if (cmdl->argc != cmdl->optind + 1) { in cmd_link_mon_set_prop()
512 size = atoi(shift_cmdl(cmdl)); in cmd_link_mon_set_prop()
554 struct cmdl *cmdl, void *data) in cmd_link_mon_summary() argument
559 fprintf(stderr, "Usage: %s monitor summary\n", cmdl->argv[0]); in cmd_link_mon_summary()
746 static void cmd_link_mon_list_help(struct cmdl *cmdl) in cmd_link_mon_list_help() argument
749 cmdl->argv[0]); in cmd_link_mon_list_help()
753 static void cmd_link_mon_list_l2_help(struct cmdl *cmdl, char *media) in cmd_link_mon_list_l2_help() argument
757 cmdl->argv[0], media); in cmd_link_mon_list_l2_help()
760 static void cmd_link_mon_list_udp_help(struct cmdl *cmdl, char *media) in cmd_link_mon_list_udp_help() argument
764 cmdl->argv[0]); in cmd_link_mon_list_udp_help()
768 struct cmdl *cmdl, void *data) in cmd_link_mon_list() argument
787 if (parse_opts(opts, cmdl) < 0) in cmd_link_mon_list()
791 err = cmd_get_unique_bearer_name(cmd, cmdl, opts, bname, in cmd_link_mon_list()
798 cmd->help(cmdl); in cmd_link_mon_list()
811 static void cmd_link_mon_set_help(struct cmdl *cmdl) in cmd_link_mon_set_help() argument
816 cmdl->argv[0]); in cmd_link_mon_set_help()
820 struct cmdl *cmdl, void *data) in cmd_link_mon_set() argument
827 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_mon_set()
830 static void cmd_link_mon_get_help(struct cmdl *cmdl) in cmd_link_mon_get_help() argument
835 cmdl->argv[0]); in cmd_link_mon_get_help()
859 struct cmdl *cmdl, void *data) in cmd_link_mon_get_prop() argument
873 struct cmdl *cmdl, void *data) in cmd_link_mon_get() argument
880 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_mon_get()
883 static void cmd_link_mon_help(struct cmdl *cmdl) in cmd_link_mon_help() argument
892 cmdl->argv[0]); in cmd_link_mon_help()
895 static int cmd_link_mon(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_link_mon() argument
906 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link_mon()
909 void cmd_link_help(struct cmdl *cmdl) in cmd_link_help() argument
920 cmdl->argv[0]); in cmd_link_help()
923 int cmd_link(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_link() argument
935 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_link()