From: 3!tgraf <3!tgraf> Date: Tue, 18 Jan 2005 22:11:58 +0000 (+0000) Subject: Use parse_rtattr_nested X-Git-Tag: v2_6_10-050124~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cb5ee34d37b3fa9aa4992275aebf455cbb032d6;p=thirdparty%2Fiproute2.git Use parse_rtattr_nested (Logical change 1.129) --- diff --git a/tc/m_mirred.c b/tc/m_mirred.c index 585f674eb..366129722 100644 --- a/tc/m_mirred.c +++ b/tc/m_mirred.c @@ -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]");