]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ife action: allow specifying index in hex
authorRoman Mashak <mrv@mojatatu.com>
Tue, 11 Oct 2016 11:00:40 +0000 (07:00 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 12 Oct 2016 22:09:52 +0000 (15:09 -0700)
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
tc/m_ife.c

index 0219760aa3631585d67b037ed45a34878188b44b..a5a7516d86ba6d6ec8c1f0f2c206aedc1f867853 100644 (file)
@@ -152,7 +152,7 @@ static int parse_ife(struct action_util *a, int *argc_p, char ***argv_p,
        if (argc) {
                if (matches(*argv, "index") == 0) {
                        NEXT_ARG();
-                       if (get_u32(&p.index, *argv, 10)) {
+                       if (get_u32(&p.index, *argv, 0)) {
                                fprintf(stderr, "ife: Illegal \"index\"\n");
                                return -1;
                        }