Lines Matching defs:argv
70 char **argv = *argv_p;
81 if (matches(*argv, "action") == 0) {
83 } else if (matches(*argv, "egress") == 0) {
89 if (matches(*argv, "index") == 0) {
91 if (get_u32(&p.index, *argv, 10)) {
98 argv++;
102 fprintf(stderr, "was expecting egress (%s)\n", *argv);
105 } else if (!mirror && matches(*argv, "mirror") == 0) {
114 } else if (!redir && matches(*argv, "redirect") == 0) {
123 } else if ((redir || mirror) && matches(*argv, "dev") == 0) {
126 duparg("dev", *argv);
128 strncpy(d, *argv, sizeof(d)-1);
130 argv++;
161 if (matches(*argv, "reclassify") == 0) {
164 } else if (matches(*argv, "pipe") == 0) {
167 } else if (matches(*argv, "drop") == 0 ||
168 matches(*argv, "shot") == 0) {
171 } else if (matches(*argv, "continue") == 0) {
174 } else if (matches(*argv, "pass") == 0) {
182 if (iok && matches(*argv, "index") == 0) {
186 if (matches(*argv, "index") == 0) {
188 if (get_u32(&p.index, *argv, 10)) {
193 argv++;
204 *argv_p = argv;
215 char **argv = *argv_p;
222 if (matches(*argv, "mirred") == 0) {
225 fprintf(stderr,"mirred bad argument %s\n", *argv);
230 if (matches(*argv, "egress") == 0 || matches(*argv, "index") == 0) {
231 int ret = parse_egress(a, &argc, &argv, tca_id, n);
234 *argv_p = argv;
238 } else if (matches(*argv, "ingress") == 0) {
240 } else if (matches(*argv, "help") == 0) {
243 fprintf(stderr,"mirred option not supported %s\n", *argv);