openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
162 stars 98 forks source link

dhcpv6-ia: add some noise to the T1 and T2 periods #207

Open ldir-EDB0 opened 11 months ago

ldir-EDB0 commented 11 months ago

Without this, all the clients get the same timeouts and try to renew addresses at the same time. Reduce the T1 & T2 by a pseudo random 0 to 127 seconds, thus the renew attempts are likely to be spread out a bit in time.

What do we think? Sensible? Stupid?

systemcrash commented 10 months ago

Sensible - helps guard against update avalanches.