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.
Modified: trunk/reactos/subsys/system/dhcp/dhclient.c
_____
Modified: trunk/reactos/subsys/system/dhcp/dhclient.c
--- trunk/reactos/subsys/system/dhcp/dhclient.c 2005-04-17 19:45:06 UTC
(rev 14656)
+++ trunk/reactos/subsys/system/dhcp/dhclient.c 2005-04-17 19:47:44 UTC
(rev 14657)
@@ -685,7 +685,7 @@
/* 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.",