Home | History | Annotate | Download | only in other

Lines Matching refs:cmd

35   char *cmd;
40 cmd = toys.optargs[0];
42 if (!strcmp(cmd, "set_name_type")) {
50 error_exit("%s: unknown '%s'", cmd, toys.optargs[1]);
54 request.cmd = SET_VLAN_NAME_TYPE_CMD;
62 if (!strcmp(cmd, "add")) {
63 request.cmd = ADD_VLAN_CMD;
67 } else if (!strcmp(cmd, "rem")) request.cmd = DEL_VLAN_CMD;
68 else if (!strcmp(cmd, "set_flag")) {
69 request.cmd = SET_VLAN_FLAG_CMD;
72 } else if(strcmp(cmd, "set_egress_map") == 0) {
73 request.cmd = SET_VLAN_EGRESS_PRIORITY_CMD;
77 } else if(strcmp(cmd, "set_ingress_map") == 0) {
78 request.cmd = SET_VLAN_INGRESS_PRIORITY_CMD;
85 perror_exit("Unknown command %s", cmd);
89 xprintf("Successful %s on device %s\n", cmd, toys.optargs[1]);