Use parse_rtattr_nested

(Logical change 1.129)
This commit is contained in:
3!tgraf 2005-01-18 22:11:58 +00:00
parent ca96957c42
commit 5cb5ee34d3

View 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]");