From bc3c0b717dd41958b5011ffe3eb23ba80b1c58d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sun, 10 Apr 2022 15:09:41 +0200 Subject: [PATCH] fff-ra: set preferred lifetime smaller than valid lifetime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A recent change (b26399283a) introduced an upper limit for the preferred and valid lifetimes, so the statically configured addresses on the client interface do not result in infinite lifetimes. This upper bound is derived from the dhcp lease time. However, the preferred lifetime is unexpectedly bound by an explicit configuration option in recent versions of odhcpd. Due to our short dhcp leasetime, the default value of this option is higher than the lease time, which results preferred lifetimes longer than the valid lifetime. As this behavior is rather unintuitive, a proper fix for it should be done upstream (see #238). Until then, lower the preferred lifetime option to the same value as our leasetime. Signed-off-by: Fabian Bläse Reviewed-by: Christian Dresel --- src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra b/src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra index 458dbe45..e4524723 100644 --- a/src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra +++ b/src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra @@ -5,6 +5,12 @@ uci batch <