Lines Matching refs:argv
51 static int init_gred(struct qdisc_util *qu, int argc, char **argv,
61 DPRINTF(stderr,"init_gred: invoked with %s\n",*argv);
62 if (strcmp(*argv, "DPs") == 0) {
64 DPRINTF(stderr,"init_gred: next_arg with %s\n",*argv);
65 dps = strtol(*argv, (char **)NULL, 10);
73 } else if (strcmp(*argv, "default") == 0) {
75 def_dp = strtol(*argv, (char **)NULL, 10);
87 } else if (strcmp(*argv, "grio") == 0) {
89 } else if (strcmp(*argv, "help") == 0) {
93 fprintf(stderr, "What is \"%s\"?\n", *argv);
97 argc--; argv++;
120 static int gred_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
135 if (strcmp(*argv, "limit") == 0) {
137 if (get_size(&opt.limit, *argv)) {
142 } else if (strcmp(*argv, "setup") == 0) {
147 return init_gred(qu,argc-1, argv+1,n);
149 } else if (strcmp(*argv, "min") == 0) {
151 if (get_size(&opt.qth_min, *argv)) {
156 } else if (strcmp(*argv, "max") == 0) {
158 if (get_size(&opt.qth_max, *argv)) {
163 } else if (strcmp(*argv, "DP") == 0) {
165 opt.DP=strtol(*argv, (char **)NULL, 10);
174 } else if (strcmp(*argv, "burst") == 0) {
176 if (get_unsigned(&burst, *argv, 0)) {
181 } else if (strcmp(*argv, "avpkt") == 0) {
183 if (get_size(&avpkt, *argv)) {
188 } else if (strcmp(*argv, "probability") == 0) {
190 if (sscanf(*argv, "%lg", &probability) != 1) {
195 } else if (strcmp(*argv, "prio") == 0) {
197 opt.prio=strtol(*argv, (char **)NULL, 10);
200 } else if (strcmp(*argv, "bandwidth") == 0) {
202 if (get_rate(&rate, *argv)) {
207 } else if (strcmp(*argv, "help") == 0) {
211 fprintf(stderr, "What is \"%s\"?\n", *argv);
215 argc--; argv++;