git://git.onelab.eu
/
iproute2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reset for new tag naming scheme
[iproute2.git]
/
tc
/
tc_qdisc.c
diff --git
a/tc/tc_qdisc.c
b/tc/tc_qdisc.c
index
7802d52
..
e9174ab
100644
(file)
--- a/
tc/tc_qdisc.c
+++ b/
tc/tc_qdisc.c
@@
-126,6
+126,10
@@
int tc_qdisc_modify(int cmd, unsigned flags, int argc, char **argv)
addattr_l(&req.n, sizeof(req), TCA_RATE, &est, sizeof(est));
if (q) {
+ if (!q->parse_qopt) {
+ fprintf(stderr, "qdisc '%s' does not support option parsing\n", k);
+ return -1;
+ }
if (q->parse_qopt(q, argc, argv, &req.n))
return 1;
} else {