Page MenuHomeFreeBSD

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

Authored by pouria on Sun, Feb 22, 8:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Feb 27, 9:31 AM
Unknown Object (File)
Wed, Feb 25, 9:50 PM
Unknown Object (File)
Wed, Feb 25, 12:32 AM
Unknown Object (File)
Tue, Feb 24, 11:33 AM
Unknown Object (File)
Tue, Feb 24, 6:40 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 70910
Build 67793: arc lint + arc unit