1
0
mirror of https://git.FreeBSD.org/src.git synced 2026-06-02 11:24:32 +00:00

route(8): Show metric value in monitor route

Reviewed by:	glebius
Differential Revision: https://reviews.freebsd.org/D56326
This commit is contained in:
Pouria Mousavizadeh Tehrani
2026-05-04 21:29:15 +03:30
parent 6dd429aeab
commit f15b8a8f1d
+1
View File
@@ -542,6 +542,7 @@ print_nlmsg_route_nhop(struct nl_helper *h, struct snl_parsed_route *r,
if (nh->rtax_mtu == 0)
nh->rtax_mtu = link.ifla_mtu;
printf("iface %s ", link.ifla_ifname);
printf("metric %d ", nh->rta_metric);
printf("weight %d ", nh->rtnh_weight);
if (nh->rtax_mtu != 0)
printf("mtu %d ", nh->rtax_mtu);