diff options
| author | Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> | 2026-02-25 16:45:36 +0000 |
|---|---|---|
| committer | Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> | 2026-02-26 09:49:09 +0000 |
| commit | b5366f8e138e223d85d7c9b71f0a0384f5d55f29 (patch) | |
| tree | 8e8a2ac88eccae47dc05469a9318ace425015333 | |
| parent | 8230cf1aa18d9215ee17fec743fc7c7c8fa2da13 (diff) | |
route(8): show expire time of each nexthop in monitor
Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D55514
| -rw-r--r-- | sbin/route/route_netlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/route/route_netlink.c b/sbin/route/route_netlink.c index 5dde7501d6b4..e3ddbf81e62c 100644 --- a/sbin/route/route_netlink.c +++ b/sbin/route/route_netlink.c @@ -488,6 +488,8 @@ print_nlmsg_route_nhop(struct nl_helper *h, struct snl_parsed_route *r, printf("iface %s ", link.ifla_ifname); if (nh->rtax_mtu != 0) printf("mtu %d ", nh->rtax_mtu); + if (nh->rta_expire > 0) + printf("expire %u ", nh->rta_expire); } if (first) { |
