From 8d76cae6b183a837735c88abf5204e49e9358fb8 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 4 Nov 2020 14:30:16 -0600 Subject: [PATCH] monitor: Dump some additional ROUTE attributes --- monitor/nlmon.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index ab9b2266..f6babac7 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -6744,6 +6744,11 @@ static struct attr_entry addr_entry[] = { { }, }; +static const struct attr_entry metrics_table[] = { + { RTAX_MTU, "MTU", ATTR_U32 }, + { } +}; + static struct attr_entry route_entry[] = { { RTA_DST, "Destination Address", ATTR_CUSTOM, { .function = print_inet_addr } }, @@ -6754,10 +6759,13 @@ static struct attr_entry route_entry[] = { { RTA_GATEWAY, "Gateway", ATTR_CUSTOM, { .function = print_inet_addr } }, { RTA_PRIORITY, "Priority of the route", ATTR_S32 }, - { RTA_METRICS, "Metric of the route", ATTR_S32 }, { RTA_TABLE, "Routing Table", ATTR_U32 }, + { RTA_EXPIRES, "Route lifetime", ATTR_U32 }, + { RTA_PREF, "Route Preference", ATTR_U8 }, { RTA_PREFSRC, "Preferred Source", ATTR_CUSTOM, { .function = print_inet_addr } }, + { RTA_METRICS, "Metrics", + ATTR_NESTED, { metrics_table } }, { }, };