Bug 265761 - rtadvd(8) should also deprecate prefix on shutdown
Summary: rtadvd(8) should also deprecate prefix on shutdown
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-10 16:53 UTC by Frank Behrens
Modified: 2023-06-24 22:59 UTC (History)
1 user (show)

See Also:


Attachments
deprecate prefix on rtadvd shutdown (843 bytes, patch)
2022-08-10 16:53 UTC, Frank Behrens
no flags Details | Diff
deprecate prefixes on shutdown by default (2.45 KB, patch)
2023-06-24 22:59 UTC, Daniel Ponte
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Behrens 2022-08-10 16:53:39 UTC
Created attachment 235827 [details]
deprecate prefix on rtadvd shutdown

When rtadvd is shutdown the router lifetime and lifetimes for DNS options are set to zero in order to deprecate that information.

The same should be done for prefix information as shown in the attached patch.

With the patched version other hosts stop immediately the use of old prefixes when rtadvd is restarted with new prefix information. Othwerwise we have to wait for prefix expiry, which meanwhile may lead to non-working connection attempts.
Comment 1 Daniel Ponte 2022-09-04 14:01:17 UTC
I am very interested in this patch. Is there a reason this is not already done? Does this run afoul of the RFCs in some way?
Comment 2 Daniel Ponte 2022-09-04 14:04:42 UTC
Looking more closely at Linux's radvd, they have it as a configuration option (DeprecatePrefix). This should probably similarly be implemented as a per-interface config.
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:38:30 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
Comment 4 Daniel Ponte 2023-06-24 22:59:41 UTC
Created attachment 242978 [details]
deprecate prefixes on shutdown by default

This adds a configuration option. Please merge either this or the original patch. Without deprecation, rebooting the gateway (which redelegates from DHCPv6-PD with a changing prefix every lease request) causes loss of v6 connectivity on my network.