• Home
  • Raw
  • Download

Lines Matching refs:cmdl

57 static void cmd_bearer_enable_l2_help(struct cmdl *cmdl, char *media)  in cmd_bearer_enable_l2_help()  argument
64 cmdl->argv[0], media); in cmd_bearer_enable_l2_help()
67 static void cmd_bearer_enable_udp_help(struct cmdl *cmdl, char *media) in cmd_bearer_enable_udp_help() argument
71 cmdl->argv[0], media); in cmd_bearer_enable_udp_help()
124 struct cmdl *cmdl) in nl_add_udp_enable_opts() argument
143 cmd_bearer_enable_udp_help(cmdl, "udp"); in nl_add_udp_enable_opts()
198 struct cmdl *cmdl, struct opt *opts, in nl_add_bearer_name() argument
204 if ((err = cmd_get_unique_bearer_name(cmd, cmdl, opts, bname, sup_media))) in nl_add_bearer_name()
211 int cmd_get_unique_bearer_name(const struct cmd *cmd, struct cmdl *cmdl, in cmd_get_unique_bearer_name() argument
223 (cmd->help)(cmdl); in cmd_get_unique_bearer_name()
236 (entry->help)(cmdl, media); in cmd_get_unique_bearer_name()
254 static void cmd_bearer_add_udp_help(struct cmdl *cmdl, char *media) in cmd_bearer_add_udp_help() argument
257 cmdl->argv[0], media); in cmd_bearer_add_udp_help()
260 static void cmd_bearer_add_help(struct cmdl *cmdl) in cmd_bearer_add_help() argument
263 cmdl->argv[0]); in cmd_bearer_add_help()
267 struct cmdl *cmdl) in udp_bearer_add() argument
307 struct cmdl *cmdl, void *data) in cmd_bearer_add_media() argument
327 cmdl->optind--; in cmd_bearer_add_media()
328 if (parse_opts(opts, cmdl) < 0) in cmd_bearer_add_media()
353 err = nl_add_bearer_name(nlh, cmd, cmdl, opts, sup_media); in cmd_bearer_add_media()
357 err = udp_bearer_add(nlh, opts, cmdl); in cmd_bearer_add_media()
367 struct cmdl *cmdl, void *data) in cmd_bearer_add() argument
374 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_bearer_add()
377 static void cmd_bearer_enable_help(struct cmdl *cmdl) in cmd_bearer_enable_help() argument
384 cmdl->argv[0]); in cmd_bearer_enable_help()
389 struct cmdl *cmdl, void *data) in cmd_bearer_enable() argument
414 if (parse_opts(opts, cmdl) < 0) { in cmd_bearer_enable()
416 (cmd->help)(cmdl); in cmd_bearer_enable()
437 err = nl_add_bearer_name(nlh, cmd, cmdl, opts, sup_media); in cmd_bearer_enable()
443 err = nl_add_udp_enable_opts(nlh, opts, cmdl); in cmd_bearer_enable()
452 static void cmd_bearer_disable_l2_help(struct cmdl *cmdl, char *media) in cmd_bearer_disable_l2_help() argument
455 cmdl->argv[0], media); in cmd_bearer_disable_l2_help()
458 static void cmd_bearer_disable_udp_help(struct cmdl *cmdl, char *media) in cmd_bearer_disable_udp_help() argument
461 cmdl->argv[0], media); in cmd_bearer_disable_udp_help()
464 static void cmd_bearer_disable_help(struct cmdl *cmdl) in cmd_bearer_disable_help() argument
467 cmdl->argv[0]); in cmd_bearer_disable_help()
472 struct cmdl *cmdl, void *data) in cmd_bearer_disable() argument
490 if (parse_opts(opts, cmdl) < 0) { in cmd_bearer_disable()
492 (cmd->help)(cmdl); in cmd_bearer_disable()
502 err = nl_add_bearer_name(nlh, cmd, cmdl, opts, sup_media); in cmd_bearer_disable()
511 static void cmd_bearer_set_help(struct cmdl *cmdl) in cmd_bearer_set_help() argument
514 cmdl->argv[0]); in cmd_bearer_set_help()
519 static void cmd_bearer_set_udp_help(struct cmdl *cmdl, char *media) in cmd_bearer_set_udp_help() argument
522 cmdl->argv[0], media); in cmd_bearer_set_udp_help()
526 static void cmd_bearer_set_l2_help(struct cmdl *cmdl, char *media) in cmd_bearer_set_l2_help() argument
530 cmdl->argv[0], media); in cmd_bearer_set_l2_help()
535 struct cmdl *cmdl, void *data) in cmd_bearer_set_prop() argument
565 if (cmdl->optind >= cmdl->argc) { in cmd_bearer_set_prop()
569 val = atoi(shift_cmdl(cmdl)); in cmd_bearer_set_prop()
571 if (parse_opts(opts, cmdl) < 0) in cmd_bearer_set_prop()
584 err = nl_add_bearer_name(nlh, cmd, cmdl, opts, sup_media); in cmd_bearer_set_prop()
594 struct cmdl *cmdl, void *data) in cmd_bearer_set() argument
603 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_bearer_set()
606 static void cmd_bearer_get_help(struct cmdl *cmdl) in cmd_bearer_get_help() argument
609 cmdl->argv[0]); in cmd_bearer_get_help()
614 static void cmd_bearer_get_udp_help(struct cmdl *cmdl, char *media) in cmd_bearer_get_udp_help() argument
617 cmdl->argv[0], media); in cmd_bearer_get_udp_help()
627 static void cmd_bearer_get_l2_help(struct cmdl *cmdl, char *media) in cmd_bearer_get_l2_help() argument
631 cmdl->argv[0], media); in cmd_bearer_get_l2_help()
770 struct cmdl *cmdl, void *data) in cmd_bearer_get_media() argument
793 cmdl->optind--; in cmd_bearer_get_media()
794 if (parse_opts(opts, cmdl) < 0) in cmd_bearer_get_media()
804 cmd_bearer_get_udp_help(cmdl, media); in cmd_bearer_get_media()
822 err = nl_add_bearer_name(nlh, cmd, cmdl, opts, sup_media); in cmd_bearer_get_media()
850 struct cmdl *cmdl, void *data) in cmd_bearer_get_prop() argument
870 (cmd->help)(cmdl); in cmd_bearer_get_prop()
883 if (parse_opts(opts, cmdl) < 0) in cmd_bearer_get_prop()
892 err = nl_add_bearer_name(nlh, cmd, cmdl, opts, sup_media); in cmd_bearer_get_prop()
901 struct cmdl *cmdl, void *data) in cmd_bearer_get() argument
911 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_bearer_get()
938 struct cmdl *cmdl, void *data) in cmd_bearer_list() argument
943 fprintf(stderr, "Usage: %s bearer list\n", cmdl->argv[0]); in cmd_bearer_list()
955 void cmd_bearer_help(struct cmdl *cmdl) in cmd_bearer_help() argument
966 " list - List bearers\n", cmdl->argv[0]); in cmd_bearer_help()
969 int cmd_bearer(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_bearer() argument
982 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_bearer()