mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-06 03:30:35 +00:00
skbedit: use get_u32 for parsing mark
parsing a mark as a classid allows for acceptance of strange
informal input.
cheers,
jamal
commit aad0da6507ff8a95a63ed8e529c05f52be5b0e75
Author: Jamal Hadi Salim <hadi@cyberus.ca>
Date: Mon Feb 15 06:45:29 2010 -0500
skbedit: use get_u32 for parsing mark
get_u32 is the more appropriate parser for a mark.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
This commit is contained in:
parent
6e46ec813b
commit
e906975a53
@ -86,7 +86,7 @@ parse_skbedit(struct action_util *a, int *argc_p, char ***argv_p, int tca_id,
|
||||
} else if (matches(*argv, "mark") == 0) {
|
||||
flags |= SKBEDIT_F_MARK;
|
||||
NEXT_ARG();
|
||||
if (get_tc_classid(&mark, *argv)) {
|
||||
if (get_u32(&mark, *argv, 0)) {
|
||||
fprintf(stderr, "Illegal mark\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user