Lines Matching refs:argv
63 static int htb_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
73 if (matches(*argv, "r2q") == 0) {
75 if (get_u32(&opt.rate2quantum, *argv, 10)) {
78 } else if (matches(*argv, "default") == 0) {
80 if (get_u32(&opt.defcls, *argv, 16)) {
83 } else if (matches(*argv, "debug") == 0) {
84 NEXT_ARG(); p = *argv;
90 fprintf(stderr, "What is \"%s\"?\n", *argv);
94 argc--; argv++;
103 static int htb_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
119 if (matches(*argv, "prio") == 0) {
121 if (get_u32(&opt.prio, *argv, 10)) {
125 } else if (matches(*argv, "mtu") == 0) {
127 if (get_u32(&mtu, *argv, 10)) {
130 } else if (matches(*argv, "mpu") == 0) {
132 if (get_u16(&mpu, *argv, 10)) {
135 } else if (matches(*argv, "overhead") == 0) {
137 if (get_u16(&overhead, *argv, 10)) {
140 } else if (matches(*argv, "linklayer") == 0) {
142 if (get_linklayer(&linklayer, *argv)) {
145 } else if (matches(*argv, "quantum") == 0) {
147 if (get_u32(&opt.quantum, *argv, 10)) {
150 } else if (matches(*argv, "burst") == 0 ||
151 strcmp(*argv, "buffer") == 0 ||
152 strcmp(*argv, "maxburst") == 0) {
154 if (get_size_and_cell(&buffer, &cell_log, *argv) < 0) {
159 } else if (matches(*argv, "cburst") == 0 ||
160 strcmp(*argv, "cbuffer") == 0 ||
161 strcmp(*argv, "cmaxburst") == 0) {
163 if (get_size_and_cell(&cbuffer, &ccell_log, *argv) < 0) {
168 } else if (strcmp(*argv, "ceil") == 0) {
174 if (get_rate(&opt.ceil.rate, *argv)) {
179 } else if (strcmp(*argv, "rate") == 0) {
185 if (get_rate(&opt.rate.rate, *argv)) {
190 } else if (strcmp(*argv, "help") == 0) {
194 fprintf(stderr, "What is \"%s\"?\n", *argv);
198 argc--; argv++;