Home | History | Annotate | Download | only in tc

Lines Matching full:argv

39 static int tbf_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
54 if (matches(*argv, "limit") == 0) {
60 if (get_size(&opt.limit, *argv)) {
65 } else if (matches(*argv, "latency") == 0) {
71 if (get_time(&latency, *argv)) {
76 } else if (matches(*argv, "burst") == 0 ||
77 strcmp(*argv, "buffer") == 0 ||
78 strcmp(*argv, "maxburst") == 0) {
84 if (get_size_and_cell(&buffer, &Rcell_log, *argv) < 0) {
89 } else if (strcmp(*argv, "mtu") == 0 ||
90 strcmp(*argv, "minburst") == 0) {
96 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) {
101 } else if (strcmp(*argv, "mpu") == 0) {
107 if (get_size(&mpu, *argv)) {
112 } else if (strcmp(*argv, "rate") == 0) {
118 if (get_rate(&opt.rate.rate, *argv)) {
123 } else if (matches(*argv, "peakrate") == 0) {
129 if (get_rate(&opt.peakrate.rate, *argv)) {
134 } else if (matches(*argv, "overhead") == 0) {
140 if (get_u16(&overhead, *argv, 10)) {
143 } else if (matches(*argv, "linklayer") == 0) {
145 if (get_linklayer(&linklayer, *argv)) {
148 } else if (strcmp(*argv, "help") == 0) {
152 fprintf(stderr, "What is \"%s\"?\n", *argv);
156 argc--; argv++;