Lines Matching defs:cmd
33 char *cmd = *toys.optargs;
38 if (!strcmp(cmd, "set_name_type")) {
46 error_exit("%s: unknown '%s'", cmd, toys.optargs[1]);
50 request.cmd = SET_VLAN_NAME_TYPE_CMD;
59 if (!strcmp(cmd, "add")) {
60 request.cmd = ADD_VLAN_CMD;
64 } else if (!strcmp(cmd, "rem")) request.cmd = DEL_VLAN_CMD;
65 else if (!strcmp(cmd, "set_flag")) {
66 request.cmd = SET_VLAN_FLAG_CMD;
69 } else if(strcmp(cmd, "set_egress_map") == 0) {
70 request.cmd = SET_VLAN_EGRESS_PRIORITY_CMD;
74 } else if(strcmp(cmd, "set_ingress_map") == 0) {
75 request.cmd = SET_VLAN_INGRESS_PRIORITY_CMD;
82 perror_exit("Unknown command %s", cmd);
86 xprintf("Successful %s on device %s\n", cmd, toys.optargs[1]);