]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
netem: Fail cleanly if user input is wrong
authorVijay Subramanian <subramanian.vijay@gmail.com>
Fri, 20 Jan 2012 17:50:25 +0000 (09:50 -0800)
committerStephen Hemminger <shemminger@vyatta.com>
Fri, 20 Jan 2012 19:21:58 +0000 (11:21 -0800)
commit14a1c164d12e32415acc44ef566fcf52ff4dd113
treea8a9e1fa7fe31bdd78c4b9e44fd44386f9c429ce
parentfdeae171e52845b465971566c9a14498dda34307
netem: Fail cleanly if user input is wrong

(Resending patch since it looks like my earlier mail did not make it to
netdev).

netem reordering requires that the delay parameter be given. Currently, if no
delay is given, tc prints the error message but still installs the qdisc. Fix
this by printing the usage and failing cleanly.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
tc/q_netem.c