monitor: Dump some additional ROUTE attributes

This commit is contained in:
Denis Kenzior 2020-11-04 14:30:16 -06:00
parent 7c5fb5aad4
commit 8d76cae6b1
1 changed files with 9 additions and 1 deletions

View File

@ -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 } },
{ },
};