The branch main has been updated by pouria:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b5366f8e138e223d85d7c9b71f0a0384f5d55f29

commit b5366f8e138e223d85d7c9b71f0a0384f5d55f29
Author:     Pouria Mousavizadeh Tehrani <[email protected]>
AuthorDate: 2026-02-25 16:45:36 +0000
Commit:     Pouria Mousavizadeh Tehrani <[email protected]>
CommitDate: 2026-02-26 09:49:09 +0000

    route(8): show expire time of each nexthop in monitor
    
    Reviewed by: glebius
    Differential Revision: https://reviews.freebsd.org/D55514
---
 sbin/route/route_netlink.c | 2 ++
 1 file changed, 2 insertions(+)

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) {

Reply via email to