Home | History | Annotate | Download | only in tc

Lines Matching full:argv

50 static int init_gred(struct qdisc_util *qu, int argc, char **argv, 
60 DPRINTF(stderr,"init_gred: invoked with %s\n",*argv);
61 if (strcmp(*argv, "DPs") == 0) {
63 DPRINTF(stderr,"init_gred: next_arg with %s\n",*argv);
64 dps = strtol(*argv, (char **)NULL, 10);
72 } else if (strcmp(*argv, "default") == 0) {
74 def_dp = strtol(*argv, (char **)NULL, 10);
86 } else if (strcmp(*argv, "grio") == 0) {
88 } else if (strcmp(*argv, "help") == 0) {
92 fprintf(stderr, "What is \"%s\"?\n", *argv);
96 argc--; argv++;
118 static int gred_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
134 if (strcmp(*argv, "limit") == 0) {
136 if (get_size(&opt.limit, *argv)) {
141 } else if (strcmp(*argv, "setup") == 0) {
146 return init_gred(qu,argc-1, argv+1,n);
148 } else if (strcmp(*argv, "min") == 0) {
150 if (get_size(&opt.qth_min, *argv)) {
155 } else if (strcmp(*argv, "max") == 0) {
157 if (get_size(&opt.qth_max, *argv)) {
162 } else if (strcmp(*argv, "DP") == 0) {
164 opt.DP=strtol(*argv, (char **)NULL, 10);
173 } else if (strcmp(*argv, "burst") == 0) {
175 if (get_unsigned(&burst, *argv, 0)) {
180 } else if (strcmp(*argv, "avpkt") == 0) {
182 if (get_size(&avpkt, *argv)) {
187 } else if (strcmp(*argv, "probability") == 0) {
189 if (sscanf(*argv, "%lg", &probability) != 1) {
194 } else if (strcmp(*argv, "prio") == 0) {
196 opt.prio=strtol(*argv, (char **)NULL, 10);
199 } else if (strcmp(*argv, "bandwidth") == 0) {
201 if (get_rate(&rate, *argv)) {
206 } else if (strcmp(*argv, "help") == 0) {
210 fprintf(stderr, "What is \"%s\"?\n", *argv);
214 argc--; argv++;