From 5cb5ee34d37b3fa9aa4992275aebf455cbb032d6 Mon Sep 17 00:00:00 2001 From: 3!tgraf <3!tgraf> Date: Tue, 18 Jan 2005 22:11:58 +0000 Subject: Use parse_rtattr_nested (Logical change 1.129) --- tc/m_mirred.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tc/m_mirred.c') diff --git a/tc/m_mirred.c b/tc/m_mirred.c index 585f674e..36612972 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]"); -- cgit v1.2.3