Lines Matching refs:argv

61 static int htb_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
71 if (matches(*argv, "r2q") == 0) {
73 if (get_u32(&opt.rate2quantum, *argv, 10)) {
76 } else if (matches(*argv, "default") == 0) {
78 if (get_u32(&opt.defcls, *argv, 16)) {
81 } else if (matches(*argv, "debug") == 0) {
82 NEXT_ARG(); p = *argv;
88 fprintf(stderr, "What is \"%s\"?\n", *argv);
92 argc--; argv++;
101 static int htb_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
117 if (matches(*argv, "prio") == 0) {
119 if (get_u32(&opt.prio, *argv, 10)) {
123 } else if (matches(*argv, "mtu") == 0) {
125 if (get_u32(&mtu, *argv, 10)) {
128 } else if (matches(*argv, "mpu") == 0) {
130 if (get_u16(&mpu, *argv, 10)) {
133 } else if (matches(*argv, "overhead") == 0) {
135 if (get_u16(&overhead, *argv, 10)) {
138 } else if (matches(*argv, "linklayer") == 0) {
140 if (get_linklayer(&linklayer, *argv)) {
143 } else if (matches(*argv, "quantum") == 0) {
145 if (get_u32(&opt.quantum, *argv, 10)) {
148 } else if (matches(*argv, "burst") == 0 ||
149 strcmp(*argv, "buffer") == 0 ||
150 strcmp(*argv, "maxburst") == 0) {
152 if (get_size_and_cell(&buffer, &cell_log, *argv) < 0) {
157 } else if (matches(*argv, "cburst") == 0 ||
158 strcmp(*argv, "cbuffer") == 0 ||
159 strcmp(*argv, "cmaxburst") == 0) {
161 if (get_size_and_cell(&cbuffer, &ccell_log, *argv) < 0) {
166 } else if (strcmp(*argv, "ceil") == 0) {
172 if (get_rate(&opt.ceil.rate, *argv)) {
177 } else if (strcmp(*argv, "rate") == 0) {
183 if (get_rate(&opt.rate.rate, *argv)) {
188 } else if (strcmp(*argv, "help") == 0) {
192 fprintf(stderr, "What is \"%s\"?\n", *argv);
196 argc--; argv++;