Commit 78934000 authored by 2!tgraf's avatar 2!tgraf

Use parse_rtattr_nested

(Logical change 1.129)
parent 7d69fd97
......@@ -596,8 +596,8 @@ print_ipt(struct action_util *au,FILE * f, struct rtattr *arg)
if (NULL == opts)
return -1;
memset(tb, 0, sizeof (tb));
parse_rtattr(tb, TCA_IPT_MAX, RTA_DATA(arg), RTA_PAYLOAD(arg));
parse_rtattr_nested(tb, TCA_IPT_MAX, arg);
if (tb[TCA_IPT_TABLE] == NULL) {
fprintf(f, "[NULL ipt table name ] assuming mangle ");
......
......@@ -554,8 +554,7 @@ print_pedit(struct action_util *au,FILE * f, struct rtattr *arg)
if (arg == NULL)
return -1;
memset(tb, 0, sizeof (tb));
parse_rtattr(tb, TCA_PEDIT_MAX, RTA_DATA(arg), RTA_PAYLOAD(arg));
parse_rtattr_nested(tb, TCA_PEDIT_MAX, arg);
if (tb[TCA_PEDIT_PARMS] == NULL) {
fprintf(f, "[NULL pedit parameters]");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment