From: Roman Mashak Date: Tue, 11 Oct 2016 11:00:40 +0000 (-0400) Subject: ife action: allow specifying index in hex X-Git-Tag: v4.9.0~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a56cca3f3b0332e94314d193d421fb6ae01df6c;p=thirdparty%2Fiproute2.git ife action: allow specifying index in hex Signed-off-by: Roman Mashak Signed-off-by: Jamal Hadi Salim --- diff --git a/tc/m_ife.c b/tc/m_ife.c index 0219760aa..a5a7516d8 100644 --- a/tc/m_ife.c +++ b/tc/m_ife.c @@ -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; }