From 8cc4ee923a0bc047334c21b15de9a1b2010a5fab Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 24 Jul 2015 17:09:23 -0500 Subject: [PATCH] nlmon: decode SERIAL_NUMBER attributes --- monitor/nlmon.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 3dc693c6..31cb90bd 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -1605,6 +1605,12 @@ static void print_wsc_response_type(unsigned int level, const char *label, print_attr(level, "%s: %s", label, response_type_table[bytes[0]]); } +static void print_wsc_serial_number(unsigned int level, const char *label, + const void *data, uint16_t size) +{ + print_wsc_ascii_string(level, label, data, size, 32); +} + static void print_wsc_version(unsigned int level, const char *label, const void *data, uint16_t size) { @@ -1675,6 +1681,8 @@ static struct attr_entry wsc_attr_entry[] = { ATTR_CUSTOM, { .function = print_wsc_bool } }, { WSC_ATTR_RESPONSE_TYPE, "Response Type", ATTR_CUSTOM, { .function = print_wsc_response_type } }, + { WSC_ATTR_SERIAL_NUMBER, "Serial Number", + ATTR_CUSTOM, { .function = print_wsc_serial_number } }, { WSC_ATTR_TOTAL_NETWORKS, "Total Networks", ATTR_CUSTOM, { .function = print_wsc_byte } }, { WSC_ATTR_UUID_E, "UUID-E",