Page MenuHomeFreeBSD

rtnetlink: Add support for nexthop expiration in new route
ClosedPublic

Authored by pouria on Sun, Feb 22, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 13, 4:13 AM
Unknown Object (File)
Fri, Mar 13, 2:28 AM
Unknown Object (File)
Thu, Mar 12, 7:22 PM
Unknown Object (File)
Wed, Mar 11, 5:05 PM
Unknown Object (File)
Wed, Mar 11, 10:28 AM
Unknown Object (File)
Mon, Mar 9, 11:12 PM
Unknown Object (File)
Mon, Mar 9, 4:50 PM
Unknown Object (File)
Mon, Mar 9, 3:52 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.Thu, Feb 26, 3:14 AM
This revision now requires review to proceed.Thu, Feb 26, 9:13 AM
This revision was not accepted when it landed; it landed in state Needs Review.Thu, Feb 26, 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).