Page MenuHomeFreeBSD

rtnetlink: Add support for nexthop expiration in new route
ClosedPublic

Authored by pouria on Feb 22 2026, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 17, 8:02 PM
Unknown Object (File)
Sun, May 17, 8:00 PM
Unknown Object (File)
Sun, May 17, 12:25 PM
Unknown Object (File)
Sun, May 17, 11:26 AM
Unknown Object (File)
Sun, May 17, 10:30 AM
Unknown Object (File)
Sun, May 17, 9:39 AM
Unknown Object (File)
Sun, May 17, 6:03 AM
Unknown Object (File)
Sun, May 17, 6:01 AM

Details

Summary

Before this change, netlink only shows nexthop
expire value. Now it can set expire time during route creation.

Test Plan

kyua test -k /usr/tests/sys/netlink/Kyuafile
and upcoming route(8) patch for netlink.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70994
Build 67877: arc lint + arc unit

Event Timeline

Add support for nexthop expire value on multipath routes.
route(8) and netstat(1) will be updated too.

glebius added inline comments.
sys/netlink/route/rt.c
182

Please declare nh_expire here. I know netlink violates that part of style(9) a lot, but let's not add new cases.

This revision is now accepted and ready to land.Feb 26 2026, 3:14 AM
This revision now requires review to proceed.Feb 26 2026, 9:13 AM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 26 2026, 12:35 PM
This revision was automatically updated to reflect the committed changes.

I have been testing this patch on a couple of computers for over a week now, and everything seems to work fine (at least I see no regression).