]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
red: fix adaptive spelling
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 20 Jan 2012 15:10:13 +0000 (16:10 +0100)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 20 Jan 2012 16:12:21 +0000 (08:12 -0800)
Reported-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
tc/q_red.c

index 0e5d2282980fa4fda40edbc08a59a1a564308416..a4b5175a12074845d82ad30712b84aa861cf5915 100644 (file)
@@ -28,7 +28,7 @@
 static void explain(void)
 {
        fprintf(stderr, "Usage: ... red limit BYTES [min BYTES] [max BYTES] avpkt BYTES [burst PACKETS]\n");
-       fprintf(stderr, "               [adaptative] [probability PROBABILITY] bandwidth KBPS\n");
+       fprintf(stderr, "               [adaptive] [probability PROBABILITY] bandwidth KBPS\n");
        fprintf(stderr, "               [ecn] [harddrop]\n");
 }
 
@@ -95,6 +95,8 @@ static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nl
                        opt.flags |= TC_RED_HARDDROP;
                } else if (strcmp(*argv, "adaptative") == 0) {
                        opt.flags |= TC_RED_ADAPTATIVE;
+               } else if (strcmp(*argv, "adaptive") == 0) {
+                       opt.flags |= TC_RED_ADAPTATIVE;
                } else if (strcmp(*argv, "help") == 0) {
                        explain();
                        return -1;
@@ -184,7 +186,7 @@ static int red_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
        if (qopt->flags & TC_RED_HARDDROP)
                fprintf(f, "harddrop ");
        if (qopt->flags & TC_RED_ADAPTATIVE)
-               fprintf(f, "adaptative ");
+               fprintf(f, "adaptive ");
        if (show_details) {
                fprintf(f, "ewma %u ", qopt->Wlog);
                if (max_P)