[PATCH] udhcpd: lease conflict

Denys Vlasenko vda.linux at googlemail.com
Wed Jan 3 21:48:45 UTC 2018


On Wed, Jan 3, 2018 at 10:30 AM, Jiří Prchal <jiri.prchal at aksignal.cz> wrote:
>
>
> On 31.12.2017 10:32, Denys Vlasenko wrote:
>>
>> On Fri, Dec 15, 2017 at 1:41 PM, Jiri Prchal <jiri.prchal at aksignal.cz>
>> wrote:
>>>
>>> If there is lease for MAC which is no longer connected and only one IP in
>>> pool, it doesn't lease to new one mac until expires the old one.
>>
>>
>> This is how it is intended to work.
>
> Could be, may be I'm absolutely wrong. But when should function
> "nobody_responds_to_arp" bee called, when ip is leased or not?

In current code it is called in order to do an extra check that there
is really no machine on an IP about to be handed out.

> And does it
> make sense to reserve ip for not responding mac?

What if "not responding MAC" is a machine which is being rebooted,
or a machine which is perfectly fine but it is behind a switch which
is being rebooted at the moment?


More information about the busybox mailing list