mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-12-29 01:15:05 +00:00
Use parse_rtattr_nested
(Logical change 1.129)
This commit is contained in:
parent
ca96957c42
commit
5cb5ee34d3
@ -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]");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user