From c439a2614c1120530ce59f427b6317844a24f241 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 23 Jul 2019 09:31:05 -0500 Subject: [PATCH] monitor: Dump IFLA_LINKINFO --- monitor/nlmon.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 509aa6a3..346b2e9e 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -5688,6 +5688,11 @@ static void print_link_mode(unsigned int indent, const char *str, link_mode_to_ascii(link_mode), link_mode); } +static struct attr_entry link_info_entry[] = { + { IFLA_INFO_KIND, "Kind", ATTR_STRING }, + { }, +}; + static struct attr_entry info_entry[] = { { IFLA_ADDRESS, "Interface Address", ATTR_CUSTOM, { .function = print_ifi_addr } }, @@ -5712,6 +5717,8 @@ static struct attr_entry info_entry[] = { { IFLA_WEIGHT, "Weight", ATTR_BINARY }, { IFLA_NET_NS_PID, "NetNSPid", ATTR_BINARY }, { IFLA_IFALIAS, "IFAlias", ATTR_BINARY }, + { IFLA_LINKINFO, "LinkInfo", + ATTR_NESTED, { link_info_entry } }, { }, };