Fixed the repeating DHCPOFFER/DHCPACK. I was assuming that the lease timeout

was relative but it's been adjusted by the time we get here.

Thanks to hpoussineau for helping with this bug.

svn path=/trunk/; revision=14657
This commit is contained in:
Art Yerkes 2005-04-17 19:47:44 +00:00
parent e0dda3685a
commit 631838f4a3

View file

@ -685,7 +685,7 @@ bind_lease(struct interface_info *ip)
/* Timeout of zero means no timeout (some implementations seem to use
* one day).
*/
if( ip->client->active->renewal )
if( ip->client->active->renewal - cur_time )
add_timeout(ip->client->active->renewal, state_bound, ip);
note("bound to %s -- renewal in %d seconds.",