Home | History | Annotate | Download | only in tc

Lines Matching refs:argv

36 static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
52 if (strcmp(*argv, "limit") == 0) {
54 if (get_size(&opt.limit, *argv)) {
59 } else if (strcmp(*argv, "min") == 0) {
61 if (get_size(&opt.qth_min, *argv)) {
66 } else if (strcmp(*argv, "max") == 0) {
68 if (get_size(&opt.qth_max, *argv)) {
73 } else if (strcmp(*argv, "burst") == 0) {
75 if (get_unsigned(&burst, *argv, 0)) {
80 } else if (strcmp(*argv, "avpkt") == 0) {
82 if (get_size(&avpkt, *argv)) {
87 } else if (strcmp(*argv, "probability") == 0) {
89 if (sscanf(*argv, "%lg", &probability) != 1) {
94 } else if (strcmp(*argv, "bandwidth") == 0) {
96 if (get_rate(&rate, *argv)) {
101 } else if (strcmp(*argv, "ecn") == 0) {
104 } else if (strcmp(*argv, "help") == 0) {
108 fprintf(stderr, "What is \"%s\"?\n", *argv);
112 argc--; argv++;