]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
tc: red, gred, tbf: more helpful error messages
authorFlorian Westphal <fw@strlen.de>
Tue, 12 Jan 2010 20:44:29 +0000 (21:44 +0100)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 21 Jan 2010 18:12:57 +0000 (10:12 -0800)
commitddf216c8631195549dbf84e4ebe3da1d77b45ce0
treedab479d6345609a68c284e88822338b09d2f6507
parent9e318455a34bd76ab8b630d9133df830c0112200
tc: red, gred, tbf: more helpful error messages

$ tc qdisc add dev eth1 root tbf
RTNETLINK answers: Invalid argument

$ tc qdisc add dev eth1 root red
RTNETLINK answers: Invalid argument

with patch:
$ tc qdisc add dev eth1 root red
Required parameter (min, max, burst, limit, avpkt) is missing

$ tc qdisc add dev eth1 root tbf
Usage: ... tbf limit BYTES burst BYTES[/BYTES] rate KBPS ...

Signed-off-by: Florian Westphal <fw@strlen.de>
tc/q_gred.c
tc/q_red.c
tc/q_tbf.c