On Wed, 9 Jul 2014 19:08:09 +0200
Kenneth Westerback <kwesterb...@gmail.com> wrote:
> On 9 July 2014 16:26, YASUOKA Masahiko <yasu...@yasuoka.net> wrote:
>> This diff fixes dhcpinform to work without lease.
>>
>> ok?
>>
>> Fix dhcpinform to work without lease.
>>
>> Diff from Yuuichi Someya.
> 
> This seems to be a large chunk of code duplication. Was it not be
> possible to have dhcpinform() create a lease and then simply call the
> normal ack_lease() function to send out the information?

Just creating a lease and calling ack_lease() doesn't comply with RFC
2131.  So creating a fake lease and adding some "if" switches to
ack_lease() is required.  And I didn't think it's better.

--yasuoka











Reply via email to