parent
6411e1f541
commit
1d2d1cb522
|
|
@ -243,7 +243,7 @@ static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
||||||
memcpy(&qopt, RTA_DATA(opt), sizeof(qopt));
|
memcpy(&qopt, RTA_DATA(opt), sizeof(qopt));
|
||||||
|
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
struct rtattr *tb[TCA_NETEM_MAX];
|
struct rtattr *tb[TCA_NETEM_MAX+1];
|
||||||
parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt),
|
parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt),
|
||||||
len);
|
len);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue