ife: print prio, mark and hash as unsigned
Signed-off-by: Roman Mashak <mrv@mojatatu.com> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
This commit is contained in:
parent
9a56cca3f3
commit
57ee4430f9
|
|
@ -252,7 +252,7 @@ static int print_ife(struct action_util *au, FILE *f, struct rtattr *arg)
|
||||||
len = RTA_PAYLOAD(metalist[IFE_META_SKBMARK]);
|
len = RTA_PAYLOAD(metalist[IFE_META_SKBMARK]);
|
||||||
if (len) {
|
if (len) {
|
||||||
mmark = rta_getattr_u32(metalist[IFE_META_SKBMARK]);
|
mmark = rta_getattr_u32(metalist[IFE_META_SKBMARK]);
|
||||||
fprintf(f, "use mark %d ", mmark);
|
fprintf(f, "use mark %u ", mmark);
|
||||||
} else
|
} else
|
||||||
fprintf(f, "allow mark ");
|
fprintf(f, "allow mark ");
|
||||||
}
|
}
|
||||||
|
|
@ -261,7 +261,7 @@ static int print_ife(struct action_util *au, FILE *f, struct rtattr *arg)
|
||||||
len = RTA_PAYLOAD(metalist[IFE_META_HASHID]);
|
len = RTA_PAYLOAD(metalist[IFE_META_HASHID]);
|
||||||
if (len) {
|
if (len) {
|
||||||
mhash = rta_getattr_u32(metalist[IFE_META_HASHID]);
|
mhash = rta_getattr_u32(metalist[IFE_META_HASHID]);
|
||||||
fprintf(f, "use hash %d ", mhash);
|
fprintf(f, "use hash %u ", mhash);
|
||||||
} else
|
} else
|
||||||
fprintf(f, "allow hash ");
|
fprintf(f, "allow hash ");
|
||||||
}
|
}
|
||||||
|
|
@ -270,7 +270,7 @@ static int print_ife(struct action_util *au, FILE *f, struct rtattr *arg)
|
||||||
len = RTA_PAYLOAD(metalist[IFE_META_PRIO]);
|
len = RTA_PAYLOAD(metalist[IFE_META_PRIO]);
|
||||||
if (len) {
|
if (len) {
|
||||||
mprio = rta_getattr_u32(metalist[IFE_META_PRIO]);
|
mprio = rta_getattr_u32(metalist[IFE_META_PRIO]);
|
||||||
fprintf(f, "use prio %d ", mprio);
|
fprintf(f, "use prio %u ", mprio);
|
||||||
} else
|
} else
|
||||||
fprintf(f, "allow prio ");
|
fprintf(f, "allow prio ");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue