fff-ra: Set preferred lifetime smaller than valid lifetime #247

Closed
fbl wants to merge 1 commits from fbl:rafix into master
Owner

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.

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.
fbl added this to the 20220413 milestone 2022-04-10 15:19:10 +02:00
fbl added the
layer3
label 2022-04-10 15:19:10 +02:00
fbl force-pushed rafix from 88aec50daa to aad829a96d 2022-04-10 15:20:18 +02:00 Compare
Member
Reviewed-by: Christian Dresel <freifunk@dresel.systems>
```` Reviewed-by: Christian Dresel <freifunk@dresel.systems> ````
ChristianD approved these changes 2022-04-11 19:12:50 +02:00
Author
Owner

applied.

applied.
fbl closed this pull request 2022-04-13 19:24:01 +02:00
fbl deleted branch rafix 2022-04-13 19:24:07 +02:00

Pull request closed

Sign in to join this conversation.
No description provided.