]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Bug fix tc action drop
authorPatrick McHardy <kaber@trash.net>
Wed, 18 Jul 2007 10:46:20 +0000 (12:46 +0200)
committerStephen Hemminger <shemminger@linux-foundation.org>
Wed, 22 Aug 2007 17:01:10 +0000 (10:01 -0700)
commitc29391c7c68f031e246c661ec1d4346693d5e445
treef2b4a24e2eaef9869f0ccf37670e05e0daa4a46d
parent720a2e8d990707749b2cafa77ab3cd2b8241ec47
Bug fix tc action drop

>>That command is from a script that used to work with iproute2-ss020116
>>(2002!), which had the following in tc/m_police.c:
>>
>>210     } else if (strcmp(*argv, "action") == 0) {
>>211             NEXT_ARG();
>>212             if (get_police_result(&p.action, &presult, *argv)) {
>>
>>I don't know when that bit was dropped, but it used to be there. :-)
>
>
>
> Indeed, I missed that. I'll fix up the patch ..

OK this patch fixes parsing of "action ...". I've removed
the erroring on unknown arguments again since in that case
the caller should continue parsing.
tc/m_police.c