aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPouria Mousavizadeh Tehrani <pouria@FreeBSD.org>2026-05-04 17:59:15 +0000
committerPouria Mousavizadeh Tehrani <pouria@FreeBSD.org>2026-05-20 20:55:07 +0000
commitf15b8a8f1de1c1d879afe9296eb3d998c64469c6 (patch)
treedb0e8091405198ecc5e015551e81b5b566303f79
parent6dd429aeabecd63ece3c567b73472e2c75991afc (diff)
route(8): Show metric value in monitor route
Reviewed by: glebius Differential Revision: https://reviews.freebsd.org/D56326
-rw-r--r--sbin/route/route_netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/route/route_netlink.c b/sbin/route/route_netlink.c
index eef8c2cfef18..20c82c25f5cf 100644
--- a/sbin/route/route_netlink.c
+++ b/sbin/route/route_netlink.c
@@ -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);