Unless a specific address is specified in an interface section (which obviously would not be in the default section of the configuration file) pltime and vltime are ignored and the default values are always used. For example the following file /etc/rtadvd.conf does nothing: default:\ :vltime=86400:\ :pltime=3600: ix1:\ :vltime=86400:\ :pltime=3600: ix1.4:\ :vltime=86400:\ :pltime=3600: A trace on a SLACC-configured machine that gateway advertises routes to shows: [root@NewFS ~]# tcpdump -v -i mce0 icmp6 and ip6[40] == 134 tcpdump: listening on mce0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 18:54:16.990562 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::2e0:b4ff:fe68:f895 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56 hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0ms, retrans timer 0ms source link-address option (1), length 8 (1): 00:e0:b4:68:f8:95 prefix info option (3), length 32 (4): 2606:83c0:8000:1b00::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s The configured values are ignored. Most of the time this is an annoyance -- if your gateway gets a new delegation rtadvd will correctly and almost-immediately deprecate the old SLACC addresses your hosts have, so the impact is that their list of "old" (depreciated) address can get quite large however operation is not impacted. Those MOST of the time this is an annoyance in that across reboots you have one deprecated address for each boot (if your delegation floats) or re-delegation event. There is, however, one very bad circumstance impacting connectivity that can arise -- if the gateway running rtadvd is rebooted or crashes and then fails to get a delegation on restart the old IPv6 host addresses on ALL of your SLACC-configured hosts remain with valid routes and do not expire for an extremely long period of time. The hosts will thus try to communicate on those addresses they obtained via SLACC but they go nowhere and this has a quite-serious network performance impact in that connection attempts (if IPv4 is available) will time out trying to reach IPv6 endpoints that are not accessible. The only way to clear them is to (1) wait for the default vltime to expire, (2) manually delete them from each interface on each SLACC-configured host or (3) reboot all the SLACC configured hosts. Mitigating this risk to a large degree could be done by setting both pltime and vltime to a reasonable period (e.g. 30 minutes and one hour respectively) and thus after an hour with no updated transmissions the advertised routes would thus expire. However, with rtadvd ignoring the configuration directives there's no way to do this, and since you do not know the prefix or address in question for each interface until the delegation occurs there's no real fix unless you have an exit script edit that file and "kick" rtadvd each time delegations update. This should not be necessary; if you specify a pltime and vltime they should be honored -- and in addition the man page specifically notes a "default:" interface entry that includes both the vltime and pltime parameters, thus effectively stating that they can be set there and then overridden for specific items (e.g. dns servers and suffixes)
Created attachment 262398 [details] Cause rtadvd to pick up the default vltime/pltime parameters w/o an address These few lines (the originals commented out) give the documented behavior except you do have to set it for each interface -- setting it in the "default" stanza does not set them.
(In reply to karl from comment #0) As a temporary workaround administrators may run ndp -P <if> on affected hosts. This command flushes all the entries in the prefix list and forces a re-run of SLAAC on the interface, immediately removing obsolete IPv6 addresses and triggering reconfiguration from Router Advertisements. To automate this, a cron job can periodically run a simple connectivity test (for example a ping to a known IPv6 endpoint) and, if it does not complete within a reasonable time, execute ndp -P <if>. This avoids long periods with unreachable but still-valid addresses, although it requires manual or scripted execution and does not replace proper honoring of pltime/vltime settings in rtadvd.
(In reply to Dmitry Nexus from comment #2) The patch I attached is running here and has been for over a month now with zero ill effects and all the expected and positive effects. Ndp (and similar schemes) are of course usable on a FreeBSD box but that doesn't help the Android or Windows client machine..... :-)
(In reply to karl from comment #3) Many thanks — great to see this fixed and working reliably. I had assumed everyone was running only FreeBSD :-)
(In reply to Dmitry Nexus from comment #4) Well, it hasn't been picked up by anyone as far as I can tell in the codebase (never mind being MFC'd back) at least thus far.
Submitted as a pull request; been running here for ~2 months, no bad effects and all good ones as expected.
Still active as of 15.1-STABLE....
The patch is good, just needs a few adjustments.
Please address the comments: https://github.com/freebsd/freebsd-src/pull/1863#discussion_r3190611624 Thank you for your contribution and your report.
(In reply to Pouria Mousavizadeh Tehrani from comment #9) Not sure where the "Signed-off-by:" tag goes; updated my profile and approved the changes as validation and such is always good. Apologies for not being entirely up-to-speed on the semantics on Github-related stuff. :-)
(In reply to karl from comment #10) Please check you email, I've sent you the patch. The signed-of-by tag certifies compliance with https://developercertificate.org/
Created attachment 270446 [details] patch (In reply to karl from comment #10) Oops, The int64_t part was right. This version is tested, please check if that works for you too and update your pr based on that. I'll do the rest. Thank you
Comment on attachment 270446 [details] patch I will test this tomorrow; I am currently on 15-STABLE on my build machine but the gateway where I run this "in anger" (where it actually transmits) is on 14.4, and I have to regenerate the build environment as its upset with the shared library version when I tried to build rtadvd as a standalone. I'll update sometime in the morning.
Tested on my 14.4-STABLE gateway and functions as expected; PR adjusted as well.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=103f9883d1ed7431c432caa6ab9c61cd4d0831d0 commit 103f9883d1ed7431c432caa6ab9c61cd4d0831d0 Author: tickerguy <karl@denninger.net> AuthorDate: 2025-09-29 16:05:29 +0000 Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> CommitDate: 2026-05-06 19:19:13 +0000 rtadvd(8): Honor pltime/vltime in interface declarations Currently rtadvd ignores interface pltime/vltime specifications unless the (static) address range is also included in the config file. This extends the validity of a pltime and/or vltime stanza in the config file for an interface to delegated addresses from an upstream provider. Signed-off-by: tickerguy <karl@denninger.net> PR: 288426 Reviewed by: pouria Pull Request: https://github.com/freebsd/freebsd-src/pull/1863 usr.sbin/rtadvd/config.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)
Thank you. Please consider MFC back to Stable-14 and Stable-15 (maybe too late for 15.1) as well.
Thank you, I will.
i think this could be considered for 15.1, although there isn't much time left. please mail re@ asap if you think it's worth including.
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=18caefe847086a9e89812db600c852b225467090 commit 18caefe847086a9e89812db600c852b225467090 Author: tickerguy <karl@denninger.net> AuthorDate: 2025-09-29 16:05:29 +0000 Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> CommitDate: 2026-05-07 19:04:43 +0000 rtadvd(8): Honor pltime/vltime in interface declarations Currently rtadvd ignores interface pltime/vltime specifications unless the (static) address range is also included in the config file. This extends the validity of a pltime and/or vltime stanza in the config file for an interface to delegated addresses from an upstream provider. Signed-off-by: tickerguy <karl@denninger.net> PR: 288426 Reviewed by: pouria Pull Request: https://github.com/freebsd/freebsd-src/pull/1863 (cherry picked from commit 103f9883d1ed7431c432caa6ab9c61cd4d0831d0) usr.sbin/rtadvd/config.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)
A commit in branch releng/15.1 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=13c70ef568c35b974ff3c19a7b6834e8486a6b42 commit 13c70ef568c35b974ff3c19a7b6834e8486a6b42 Author: tickerguy <karl@denninger.net> AuthorDate: 2025-09-29 16:05:29 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2026-05-07 20:19:02 +0000 rtadvd(8): Honor pltime/vltime in interface declarations Currently rtadvd ignores interface pltime/vltime specifications unless the (static) address range is also included in the config file. This extends the validity of a pltime and/or vltime stanza in the config file for an interface to delegated addresses from an upstream provider. Approved by: re (cperciva) Signed-off-by: tickerguy <karl@denninger.net> PR: 288426 Reviewed by: pouria Pull Request: https://github.com/freebsd/freebsd-src/pull/1863 (cherry picked from commit 103f9883d1ed7431c432caa6ab9c61cd4d0831d0) (cherry picked from commit 18caefe847086a9e89812db600c852b225467090) usr.sbin/rtadvd/config.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)