mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-04 17:40:27 +00:00
tc: pedit: Fix layered op parsing
After lookup of the layered op submodule, pedit would pass argv and argc including the layered op identifier at first position which confused the submodule parser. Fix this by calling NEXT_ARG() before calling the parse_peopt() callback. Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
72b365e8e0
commit
ec0ceeec49
@ -422,6 +422,7 @@ parse_munge(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel)
|
|||||||
p = get_pedit_kind(k);
|
p = get_pedit_kind(k);
|
||||||
if (NULL == p)
|
if (NULL == p)
|
||||||
goto bad_val;
|
goto bad_val;
|
||||||
|
NEXT_ARG();
|
||||||
res = p->parse_peopt(&argc, &argv, sel,&tkey);
|
res = p->parse_peopt(&argc, &argv, sel,&tkey);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
fprintf(stderr,"bad pedit parsing\n");
|
fprintf(stderr,"bad pedit parsing\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user