]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: m_ife: fix match tcindex parsing
authorAlexander Aring <aring@mojatatu.com>
Mon, 30 Oct 2017 16:37:49 +0000 (12:37 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 31 Oct 2017 16:56:58 +0000 (17:56 +0100)
This patch changes ife_prio to ife_tcindex which is right variable to
assign in the argument in this case.

Signed-off-by: Alexander Aring <aring@mojatatu.com>
tc/m_ife.c

index 5633ab90e5079d0a9d405854a224bb853dac5f21..8d0fd31fb94404c574f85e2d79ab76018f8a941f 100644 (file)
@@ -93,7 +93,7 @@ static int parse_ife(struct action_util *a, int *argc_p, char ***argv_p,
                        } else if (matches(*argv, "prio") == 0) {
                                ife_prio = IFE_META_PRIO;
                        } else if (matches(*argv, "tcindex") == 0) {
-                               ife_prio = IFE_META_TCINDEX;
+                               ife_tcindex = IFE_META_TCINDEX;
                        } else {
                                fprintf(stderr, "Illegal meta define <%s>\n",
                                        *argv);