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

tc/m_mirred.c

index 585f674eb84edbd832bf703d39f3dfbee4b6ecb5..3661297223af400a88588fd26703912898a92354 100644 (file)
@@ -263,8 +263,7 @@ print_mirred(struct action_util *au,FILE * f, struct rtattr *arg)
        if (arg == NULL)
                return -1;
 
-       memset(tb, 0, sizeof (tb));
-       parse_rtattr(tb, TCA_MIRRED_MAX, RTA_DATA(arg), RTA_PAYLOAD(arg));
+       parse_rtattr_nested(tb, TCA_MIRRED_MAX, arg);
 
        if (tb[TCA_MIRRED_PARMS] == NULL) {
                fprintf(f, "[NULL mirred parameters]");