Page MenuHomeFreeBSD

route: Fix -expire argument when using netlink
ClosedPublic

Authored by pouria on Feb 22 2026, 6:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 23, 1:16 AM
Unknown Object (File)
Thu, Mar 19, 4:33 AM
Unknown Object (File)
Wed, Mar 18, 12:30 AM
Unknown Object (File)
Sat, Mar 14, 3:28 PM
Unknown Object (File)
Thu, Mar 12, 9:17 PM
Unknown Object (File)
Wed, Mar 4, 7:07 PM
Unknown Object (File)
Wed, Mar 4, 6:45 AM
Unknown Object (File)
Tue, Mar 3, 5:01 AM

Details

Summary

Depends on D55442 for adding new route with -expire
argument.
Also fixes nexthop expire value on route get using netlink.

Test Plan

To test:

route -n6 add -host 3fff::1 -gateway ::1 -expire +10
route -n6 get 3fff::1

Also, checkout test plan in D55440.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Thu, Feb 26, 3:19 AM

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