parent
ca96957c42
commit
5cb5ee34d3
|
|
@ -263,8 +263,7 @@ print_mirred(struct action_util *au,FILE * f, struct rtattr *arg)
|
||||||
if (arg == NULL)
|
if (arg == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
memset(tb, 0, sizeof (tb));
|
parse_rtattr_nested(tb, TCA_MIRRED_MAX, arg);
|
||||||
parse_rtattr(tb, TCA_MIRRED_MAX, RTA_DATA(arg), RTA_PAYLOAD(arg));
|
|
||||||
|
|
||||||
if (tb[TCA_MIRRED_PARMS] == NULL) {
|
if (tb[TCA_MIRRED_PARMS] == NULL) {
|
||||||
fprintf(f, "[NULL mirred parameters]");
|
fprintf(f, "[NULL mirred parameters]");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue