From 462fa675d26f001623e92b42e2f51dc7f16e3c22 Mon Sep 17 00:00:00 2001 From: phessler Date: Thu, 27 Apr 2023 16:56:52 +0000 Subject: [PATCH] RFC 9096 changes the default timers for prefix preferred and valid lifetimes, so update rad(8) to the new ones. OK florian@ --- usr.sbin/rad/rad.conf.5 | 8 ++++---- usr.sbin/rad/rad.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/usr.sbin/rad/rad.conf.5 b/usr.sbin/rad/rad.conf.5 index 6bd743b54b8..3f71a9aeee9 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.20 2022/10/15 15:18:15 jmc Exp $ +.\" $OpenBSD: rad.conf.5,v 1.21 2023/04/27 16:56:52 phessler 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: October 15 2022 $ +.Dd $Mdocdate: April 27 2023 $ .Dt RAD.CONF 5 .Os .Sh NAME @@ -159,11 +159,11 @@ The default is yes. .It Ic preferred lifetime Ar seconds The preferred lifetime (pltime) in seconds for addresses generated from this prefix. -The default is 604800. +The default is 2700. .It Ic valid lifetime Ar seconds The valid lifetime (vltime) in seconds for addresses generated from this prefix. -The default is 2592000. +The default is 5400. .El .Sh FILES .Bl -tag -width /etc/examples/rad.conf -compact diff --git a/usr.sbin/rad/rad.h b/usr.sbin/rad/rad.h index e939ec091e2..714bb93765a 100644 --- a/usr.sbin/rad/rad.h +++ b/usr.sbin/rad/rad.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rad.h,v 1.24 2022/12/28 21:30:18 jmc Exp $ */ +/* $OpenBSD: rad.h,v 1.25 2023/04/27 16:56:52 phessler Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -29,8 +29,8 @@ #define MAX_RTR_ADV_INTERVAL 600 #define MIN_RTR_ADV_INTERVAL 200 #define ADV_DEFAULT_LIFETIME 3 * MAX_RTR_ADV_INTERVAL -#define ADV_PREFERRED_LIFETIME 604800 /* 7 days */ -#define ADV_VALID_LIFETIME 2592000 /* 30 days */ +#define ADV_PREFERRED_LIFETIME 2700 /* 45 minutes */ +#define ADV_VALID_LIFETIME 5400 /* 90 minutes */ #define MAX_RA_DELAY_TIME 500 /* 500 milliseconds */ #define MIN_DELAY_BETWEEN_RAS 3 /* 3 seconds */ #define MAX_SEARCH 1025 /* MAXDNAME in arpa/nameser.h */ -- 2.20.1