/external/iproute2/tipc/ |
D | bearer.c | 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() [all …]
|
D | node.c | 57 struct cmdl *cmdl, void *data) in cmd_node_list() argument 62 fprintf(stderr, "Usage: %s node list\n", cmdl->argv[0]); in cmd_node_list() 75 struct cmdl *cmdl, void *data) in cmd_node_set_addr() argument 82 if (cmdl->argc != cmdl->optind + 1) { in cmd_node_set_addr() 84 cmdl->argv[0]); in cmd_node_set_addr() 88 str = shift_cmdl(cmdl); in cmd_node_set_addr() 106 struct cmdl *cmdl, void *data) in cmd_node_get_addr() argument 154 struct cmdl *cmdl, void *data) in cmd_node_get_netid() argument 159 (cmd->help)(cmdl); in cmd_node_get_netid() 172 struct cmdl *cmdl, void *data) in cmd_node_set_netid() argument [all …]
|
D | cmdl.c | 70 char *shift_cmdl(struct cmdl *cmdl) in shift_cmdl() argument 74 if (cmdl->optind < cmdl->argc) in shift_cmdl() 75 next = (cmdl->optind)++; in shift_cmdl() 77 next = cmdl->argc; in shift_cmdl() 79 return cmdl->argv[next]; in shift_cmdl() 83 int parse_opts(struct opt *opts, struct cmdl *cmdl) in parse_opts() argument 88 for (i = cmdl->optind; i < cmdl->argc; i++) { in parse_opts() 91 o = find_opt(opts, cmdl->argv[i]); in parse_opts() 94 cmdl->argv[i]); in parse_opts() 98 cmdl->optind++; in parse_opts() [all …]
|
D | link.c | 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 [all …]
|
D | media.c | 46 struct cmdl *cmdl, void *data) in cmd_media_list() argument 51 fprintf(stderr, "Usage: %s media list\n", cmdl->argv[0]); in cmd_media_list() 89 struct cmdl *cmdl, void *data) in cmd_media_get_prop() argument 110 (cmd->help)(cmdl); in cmd_media_get_prop() 114 if (parse_opts(opts, cmdl) < 0) in cmd_media_get_prop() 133 static void cmd_media_get_help(struct cmdl *cmdl) in cmd_media_get_help() argument 140 cmdl->argv[0]); in cmd_media_get_help() 144 struct cmdl *cmdl, void *data) in cmd_media_get() argument 153 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_get() 156 static void cmd_media_set_help(struct cmdl *cmdl) in cmd_media_set_help() argument [all …]
|
D | peer.c | 28 struct cmdl *cmdl, void *data) in cmd_peer_rm_addr() argument 35 if ((cmdl->argc != cmdl->optind + 1) || help_flag) { in cmd_peer_rm_addr() 37 cmdl->argv[0]); in cmd_peer_rm_addr() 41 str = shift_cmdl(cmdl); in cmd_peer_rm_addr() 58 static void cmd_peer_rm_help(struct cmdl *cmdl) in cmd_peer_rm_help() argument 61 cmdl->argv[0]); in cmd_peer_rm_help() 65 struct cmdl *cmdl, void *data) in cmd_peer_rm() argument 72 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer_rm() 75 void cmd_peer_help(struct cmdl *cmdl) in cmd_peer_help() argument 81 cmdl->argv[0]); in cmd_peer_help() [all …]
|
D | cmdl.h | 24 struct cmdl { struct 33 void (*help)(struct cmdl *cmdl, char *media); argument 39 struct cmdl *cmdl, void *data); 40 void (*help)(struct cmdl *cmdl); 51 int parse_opts(struct opt *opts, struct cmdl *cmdl); 52 char *shift_cmdl(struct cmdl *cmdl); 55 const struct cmd *cmds, struct cmdl *cmdl, void *data);
|
D | tipc.c | 28 static void about(struct cmdl *cmdl) in about() argument 45 cmdl->argv[0]); in about() 52 struct cmdl cmdl; in main() local 91 cmdl.optind = optind; in main() 92 cmdl.argc = argc; in main() 93 cmdl.argv = argv; in main() 95 if ((res = run_cmd(NULL, &cmd, cmds, &cmdl, NULL)) != 0) in main()
|
D | nametable.c | 73 struct cmdl *cmdl, void *data) in cmd_nametable_show() argument 79 fprintf(stderr, "Usage: %s nametable show\n", cmdl->argv[0]); in cmd_nametable_show() 91 void cmd_nametable_help(struct cmdl *cmdl) in cmd_nametable_help() argument 97 cmdl->argv[0]); in cmd_nametable_help() 100 int cmd_nametable(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_nametable() argument 108 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_nametable()
|
D | bearer.h | 19 int cmd_bearer(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, void *data); 20 void cmd_bearer_help(struct cmdl *cmdl); 23 int cmd_get_unique_bearer_name(const struct cmd *cmd, struct cmdl *cmdl,
|
D | socket.c | 105 struct cmdl *cmdl, void *data) in cmd_socket_list() argument 110 fprintf(stderr, "Usage: %s socket list\n", cmdl->argv[0]); in cmd_socket_list() 122 void cmd_socket_help(struct cmdl *cmdl) in cmd_socket_help() argument 128 cmdl->argv[0]); in cmd_socket_help() 131 int cmd_socket(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_socket() argument 139 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_socket()
|
D | node.h | 17 int cmd_node(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, 19 void cmd_node_help(struct cmdl *cmdl);
|
D | media.h | 17 int cmd_media(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, 19 void cmd_media_help(struct cmdl *cmdl);
|
D | link.h | 17 int cmd_link(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, 19 void cmd_link_help(struct cmdl *cmdl);
|
D | nametable.h | 17 void cmd_nametable_help(struct cmdl *cmdl); 18 int cmd_nametable(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl,
|
D | socket.h | 17 void cmd_socket_help(struct cmdl *cmdl); 18 int cmd_socket(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl,
|
D | peer.h | 17 int cmd_peer(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, 19 void cmd_peer_help(struct cmdl *cmdl);
|
D | Makefile | 6 cmdl.o link.o \
|