Page MenuHomeFreeBSD

rtadvd: set route info lifetime to 0 during shutdown
Needs ReviewPublic

Authored by pouria on Feb 22 2026, 8:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 27, 3:26 AM
Unknown Object (File)
Wed, Mar 25, 4:49 AM
Unknown Object (File)
Thu, Mar 19, 4:50 AM
Unknown Object (File)
Sun, Mar 15, 10:09 PM
Unknown Object (File)
Sat, Mar 14, 12:37 PM
Unknown Object (File)
Thu, Mar 12, 1:12 PM
Unknown Object (File)
Thu, Mar 12, 5:16 AM
Unknown Object (File)
Wed, Mar 11, 9:39 AM
Subscribers

Details

Reviewers
glebius
zlei
markj
Group Reviewers
network
Summary

RFC 4191 section 3.1: If the received route's lifetime
is zero, the route is removed from the Routing Table if present.

Therefore, tell hosts that those routes are not available anymore.
setting Router lifetime field to 0 is not enough since route info
directly consults routing table for nexthop and its not depends on
defrouter list.
Also, do not tell route information option is unknown.

Test Plan

configure a rtprefix option in rtadvd.conf,
then run:

rtadvd -sfDc /etc/rtadvd.conf -M vtnet0

followed by CTRL-C for graceful shutdown.
Since FreeBSD doesn't support RFC 4191 yet (I'm working on it)
verify functionality with tcpdump.

Diff Detail

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