]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Use parse_rtattr_nested
author14!tgraf <14!tgraf>
Tue, 18 Jan 2005 22:11:58 +0000 (22:11 +0000)
committer14!tgraf <14!tgraf>
Tue, 18 Jan 2005 22:11:58 +0000 (22:11 +0000)
(Logical change 1.129)

tc/tc_util.c

index 2a19e3f11d4159838e8f99d5aca516b46116d534..0dc76c03bc12f1eb2e30c1abd1c4b47c3b560ee0 100644 (file)
@@ -429,9 +429,9 @@ void print_tm(FILE * f, const struct tcf_t *tm)
 void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtattr **xstats)
 {
        SPRINT_BUF(b1);
-       struct rtattr *tbs[TCA_STATS_MAX + 1] = {0};
+       struct rtattr *tbs[TCA_STATS_MAX + 1];
 
-       parse_rtattr(tbs, TCA_STATS_MAX, RTA_DATA(rta), RTA_PAYLOAD(rta));
+       parse_rtattr_nested(tbs, TCA_STATS_MAX, rta);
 
        if (tbs[TCA_STATS_BASIC]) {
                struct gnet_stats_basic bs = {0};