From 758f2421c00605946f9da80df9f9d4b0f392ad7c Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 31 May 2024 16:19:53 +0000 Subject: [PATCH] Preferred and valid lifetime options are sometimes ignored. When a prefix is discovered on a network interface and and the IP address has a valid or preferred lifetime configured that value is used instead of the static value from the configuration. Limitation pointed out by & man page text proposed by Ryan Vogt. Slightly tweaked by me. rad(8) should calculate the minimum of the static value from the config file and what is configured on the interface. Implementing that is slightly complicated and is left for a future diff. --- usr.sbin/rad/rad.conf.5 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rad/rad.conf.5 b/usr.sbin/rad/rad.conf.5 index 87c2b328662..7c95a8cce83 100644 --- a/usr.sbin/rad/rad.conf.5 +++ b/usr.sbin/rad/rad.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rad.conf.5,v 1.24 2024/05/17 06:50:14 florian Exp $ +.\" $OpenBSD: rad.conf.5,v 1.25 2024/05/31 16:19:53 florian Exp $ .\" .\" Copyright (c) 2018 Florian Obser .\" Copyright (c) 2005 Esben Norby @@ -18,7 +18,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 17 2024 $ +.Dd $Mdocdate: May 31 2024 $ .Dt RAD.CONF 5 .Os .Sh NAME @@ -167,10 +167,14 @@ The default is yes. The preferred lifetime (pltime) in seconds for addresses generated from this prefix. The default is 2700. +This option is ignored if the prefix is discovered from a network interface +and it has a preferred lifetime configured. .It Ic valid lifetime Ar seconds The valid lifetime (vltime) in seconds for addresses generated from this prefix. The default is 5400. +This option is ignored if the prefix is discovered from a network interface +and it has a valid lifetime configured. .El .Sh FILES .Bl -tag -width /etc/examples/rad.conf -compact -- 2.20.1