rtr7 / router7

router7 is a small home internet router completely written in Go. It is implemented as a gokrazy appliance.
https://router7.org
Apache License 2.0
2.69k stars 110 forks source link

dhcp4d: ensure that SetHostname operates on the correct lease #64

Closed robryk closed 3 years ago

robryk commented 3 years ago

Previously SetHostname could operate on an expired lease, or even on a lease for a different hwaddr, if the lease for the correct hwaddr expired and the same lease ID was given away to someone else.

That's though mostly a theoretical concern, given the actual usage of SetHostname and the time scales involved.