commit cd67e66f8e73f9f1c6c1d73f01981e47a9e150d3
parent 397699c9c52ab1449822939ac2906ea58e77924d
Author: Denis Kenzior <denkenz@gmail.com>
Date: Sat, 22 Jun 2019 12:38:35 -0500
monitor: Fix ARRAY output
Commit 3ff9f59ba1a7 ("monitor: Print MAC_ADDRS array") introduced a
small bug where some arguments were erroneously printed as an address.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/monitor/nlmon.c b/monitor/nlmon.c
@@ -3969,6 +3969,9 @@ static void print_value(int indent, const char *label, enum attr_type type,
if (len != 4)
printf("malformed packet\n");
break;
+ case ATTR_ADDRESS:
+ print_address(indent, label, buf);
+ break;
case ATTR_UNSPEC:
case ATTR_FLAG:
case ATTR_U8:
@@ -3977,9 +3980,6 @@ static void print_value(int indent, const char *label, enum attr_type type,
case ATTR_S32:
case ATTR_S64:
case ATTR_STRING:
- case ATTR_ADDRESS:
- print_address(indent, label, buf);
- break;
case ATTR_BINARY:
case ATTR_NESTED:
case ATTR_ARRAY: