Lines Matching defs:cmd
33 char *cmd;
38 cmd = toys.optargs[0];
40 if (!strcmp(cmd, "set_name_type")) {
48 error_exit("%s: unknown '%s'", cmd, toys.optargs[1]);
52 request.cmd = SET_VLAN_NAME_TYPE_CMD;
60 if (!strcmp(cmd, "add")) {
61 request.cmd = ADD_VLAN_CMD;
65 } else if (!strcmp(cmd, "rem")) request.cmd = DEL_VLAN_CMD;
66 else if (!strcmp(cmd, "set_flag")) {
67 request.cmd = SET_VLAN_FLAG_CMD;
70 } else if(strcmp(cmd, "set_egress_map") == 0) {
71 request.cmd = SET_VLAN_EGRESS_PRIORITY_CMD;
75 } else if(strcmp(cmd, "set_ingress_map") == 0) {
76 request.cmd = SET_VLAN_INGRESS_PRIORITY_CMD;
83 perror_exit("Unknown command %s", cmd);
87 xprintf("Successful %s on device %s\n", cmd, toys.optargs[1]);