Page MenuHomeFreeBSD

rtadvd: set route info lifetime to 0 during shutdown
ClosedPublic

Authored by pouria on Feb 22 2026, 8:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 16, 6:53 PM
Unknown Object (File)
Thu, Apr 16, 5:27 AM
Unknown Object (File)
Sat, Apr 11, 8:02 PM
Unknown Object (File)
Wed, Apr 8, 9:51 AM
Unknown Object (File)
Wed, Apr 8, 4:23 AM
Unknown Object (File)
Wed, Apr 8, 3:21 AM
Unknown Object (File)
Tue, Apr 7, 4:05 PM
Unknown Object (File)
Mon, Apr 6, 11:29 PM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

It also resolves one of the issues in PR263982.

Rebase to main and resolve conflict

This revision is now accepted and ready to land.Wed, Apr 1, 12:18 PM