summaryrefslogtreecommitdiffstats
path: root/tc/f_rsvp.c
diff options
context:
space:
mode:
author4!tgraf <4!tgraf>2005-01-18 22:11:58 +0000
committer4!tgraf <4!tgraf>2005-01-18 22:11:58 +0000
commit3b3ecd31c1e513f029ebbb83f2e808553de0a741 (patch)
treecb3e5e8567687e423161c2428795ee39b227889e /tc/f_rsvp.c
parent5cb5ee34d37b3fa9aa4992275aebf455cbb032d6 (diff)
Use parse_rtattr_nested
(Logical change 1.129)
Diffstat (limited to 'tc/f_rsvp.c')
-rw-r--r--tc/f_rsvp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tc/f_rsvp.c b/tc/f_rsvp.c
index 8faa22e7..13fcf979 100644
--- a/tc/f_rsvp.c
+++ b/tc/f_rsvp.c
@@ -322,9 +322,7 @@ static int rsvp_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, _
if (opt == NULL)
return 0;
- memset(tb, 0, sizeof(tb));
- if (opt)
- parse_rtattr(tb, TCA_RSVP_MAX, RTA_DATA(opt), RTA_PAYLOAD(opt));
+ parse_rtattr_nested(tb, TCA_RSVP_MAX, opt);
if (handle)
fprintf(f, "fh 0x%08x ", handle);