Home | History | Annotate | Download | only in tc

Lines Matching full:argv

38 static int sfq_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
50 if (strcmp(*argv, "quantum") == 0) {
52 if (get_size(&opt.v0.quantum, *argv)) {
57 } else if (strcmp(*argv, "perturb") == 0) {
59 if (get_integer(&opt.v0.perturb_period, *argv, 0)) {
64 } else if (strcmp(*argv, "limit") == 0) {
66 if (get_u32(&opt.v0.limit, *argv, 0)) {
75 } else if (strcmp(*argv, "divisor") == 0) {
77 if (get_u32(&opt.v0.divisor, *argv, 0)) {
82 } else if (strcmp(*argv, "flows") == 0) {
84 if (get_u32(&opt.v0.flows, *argv, 0)) {
89 } else if (strcmp(*argv, "depth") == 0) {
91 if (get_u32(&opt.depth, *argv, 0)) {
96 } else if (strcmp(*argv, "headdrop") == 0) {
99 } else if (strcmp(*argv, "redflowlimit") == 0) {
101 if (get_u32(&opt.limit, *argv, 0)) {
106 } else if (strcmp(*argv, "min") == 0) {
108 if (get_u32(&opt.qth_min, *argv, 0)) {
113 } else if (strcmp(*argv, "max") == 0) {
115 if (get_u32(&opt.qth_max, *argv, 0)) {
120 } else if (strcmp(*argv, "burst") == 0) {
122 if (get_unsigned(&burst, *argv, 0)) {
127 } else if (strcmp(*argv, "avpkt") == 0) {
129 if (get_size(&avpkt, *argv)) {
134 } else if (strcmp(*argv, "probability") == 0) {
136 if (sscanf(*argv, "%lg", &probability) != 1) {
141 } else if (strcmp(*argv, "ecn") == 0) {
144 } else if (strcmp(*argv, "harddrop") == 0) {
147 } else if (strcmp(*argv, "help") == 0) {
151 fprintf(stderr, "What is \"%s\"?\n", *argv);
155 argc--; argv++;