From: Jonathan Matthew Subject: Re: rad(8): track vltime / pltime for "auto prefix"es To: Bjorn Ketelaars Cc: Florian Obser , tech@openbsd.org Date: Sun, 26 May 2024 10:37:48 +1000 On Thu, May 23, 2024 at 06:32:49AM +0200, Bjorn Ketelaars wrote: > On Mon 20/05/2024 14:16, Florian Obser wrote: > > Prefixes delegated via DHCPv6 have a lifetime, honour it. > > > > The "auto prefix" feature derives the prefix to announce from a > > configured IPv6 address. If that address has a vltime / pltime use > > that value in router advertisements instead of statically configured > > values. > > > > We also need to count down the vltime / pltime as time progresses. > > > > This is on top of "rad(8): reduce calls to getifaddrs(3)" and also needs > > "send RTM_CHGADDRATTR for vltime / pltime changes" to work correctly. > > > > OK? > > Tested this on top of "rad(8) reduce calls to getifaddrs(3)" and "send > RTM_CHGADDRATTR for vltime / pltime changes". No issues observed in a > dual-stack setup, and no complaining clients. > > "send RTM_CHGADDRATTR for vltime / pltime changes" is already in. FWIW, > ok bket@ for the 2 rad(8) diffs. I've been running these diffs with a dhcpcd delegated prefix for a few days and everything is working nicely. ok jmatthew@ also.