Lines Matching refs:argv
51 static int cbq_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
67 if (matches(*argv, "bandwidth") == 0 ||
68 matches(*argv, "rate") == 0) {
70 if (get_rate(&r.rate, *argv)) {
74 } else if (matches(*argv, "ewma") == 0) {
76 if (get_integer(&ewma_log, *argv, 0)) {
84 } else if (matches(*argv, "cell") == 0) {
88 if (get_size(&cell, *argv)) {
100 } else if (matches(*argv, "avpkt") == 0) {
102 if (get_size(&avpkt, *argv)) {
106 } else if (matches(*argv, "mpu") == 0) {
108 if (get_size(&mpu, *argv)) {
112 } else if (matches(*argv, "allot") == 0) {
115 if (get_size(&allot, *argv)) {
119 } else if (matches(*argv, "overhead") == 0) {
121 if (get_u16(&overhead, *argv, 10)) {
124 } else if (matches(*argv, "linklayer") == 0) {
126 if (get_linklayer(&linklayer, *argv)) {
129 } else if (matches(*argv, "help") == 0) {
133 fprintf(stderr, "What is \"%s\"?\n", *argv);
137 argc--; argv++;
182 static int cbq_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
207 if (matches(*argv, "rate") == 0) {
209 if (get_rate(&r.rate, *argv)) {
213 } else if (matches(*argv, "bandwidth") == 0) {
215 if (get_rate(&bndw, *argv)) {
219 } else if (matches(*argv, "minidle") == 0) {
221 if (get_u32(&lss.minidle, *argv, 0)) {
226 } else if (matches(*argv, "minburst") == 0) {
228 if (get_u32(&minburst, *argv, 0)) {
233 } else if (matches(*argv, "maxburst") == 0) {
235 if (get_u32(&maxburst, *argv, 0)) {
240 } else if (matches(*argv, "bounded") == 0) {
243 } else if (matches(*argv, "borrow") == 0) {
246 } else if (matches(*argv, "isolated") == 0) {
249 } else if (matches(*argv, "sharing") == 0) {
252 } else if (matches(*argv, "ewma") == 0) {
254 if (get_integer(&ewma_log, *argv, 0)) {
263 } else if (matches(*argv, "cell") == 0) {
267 if (get_size(&cell, *argv)) {
279 } else if (matches(*argv, "prio") == 0) {
282 if (get_u32(&prio, *argv, 0)) {
292 } else if (matches(*argv, "allot") == 0) {
294 if (get_size(&wrr.allot, *argv)) {
298 } else if (matches(*argv, "avpkt") == 0) {
300 if (get_size(&lss.avpkt, *argv)) {
305 } else if (matches(*argv, "mpu") == 0) {
307 if (get_size(&mpu, *argv)) {
311 } else if (matches(*argv, "weight") == 0) {
313 if (get_size(&wrr.weight, *argv)) {
318 } else if (matches(*argv, "split") == 0) {
320 if (get_tc_classid(&fopt.split, *argv)) {
325 } else if (matches(*argv, "defmap") == 0) {
328 err = sscanf(*argv, "%08x/%08x", &fopt.defmap, &fopt.defchange);
336 } else if (matches(*argv, "overhead") == 0) {
338 if (get_u16(&overhead, *argv, 10)) {
341 } else if (matches(*argv, "linklayer") == 0) {
343 if (get_linklayer(&linklayer, *argv)) {
346 } else if (matches(*argv, "help") == 0) {
350 fprintf(stderr, "What is \"%s\"?\n", *argv);
354 argc--; argv++;