Closed sargon closed 4 years ago
Investigate into this maybe existing problem, when a client is discovering https://github.com/sargon/ddhcpd/blob/master/dhcp.c#L183 we search for an address using block_find_free_leases https://github.com/sargon/ddhcpd/blob/master/block.c#L239 and my understanding of that function is that it should select used blocks first.
Change of strategy, use the oldest block with unused leases in #52
Fixed in r4
It seems like, we are leasing from newer blocks instead of reusing already used blocks.
In the leases field the first value are "reserved" addresses by a in progress dhcp discovery event and the second value are the leased addresses.