Use parse_rtattr_nested

(Logical change 1.129)
This commit is contained in:
6!tgraf 2005-01-18 22:11:58 +00:00
parent 87bc1f03ad
commit 14ee9e6159
2 changed files with 2 additions and 4 deletions

View File

@ -318,8 +318,7 @@ print_police(struct action_util *a, FILE *f, struct rtattr *arg)
if (arg == NULL)
return 0;
memset(tb, 0, sizeof(tb));
parse_rtattr(tb, TCA_POLICE_MAX, RTA_DATA(arg), RTA_PAYLOAD(arg));
parse_rtattr_nested(tb, TCA_POLICE_MAX, arg);
if (tb[TCA_POLICE_TBF] == NULL) {
fprintf(f, "[NULL police tbf]");

View File

@ -246,8 +246,7 @@ static int htb_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if (opt == NULL)
return 0;
memset(tb, 0, sizeof(tb));
parse_rtattr(tb, TCA_HTB_RTAB, RTA_DATA(opt), RTA_PAYLOAD(opt));
parse_rtattr_nested(tb, TCA_HTB_RTAB, opt);
if (tb[TCA_HTB_PARMS]) {