dhcp-client: Fix computation of timeouts.
authorBen Pfaff <blp@nicira.com>
Tue, 14 Oct 2008 22:51:26 +0000 (15:51 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 14 Oct 2008 23:14:13 +0000 (16:14 -0700)
commit4040288732932a373555b8d9ebad4b6bd5135ae0
tree080b856e4caa1b359ffa247ffc44906e39e923c1
parent0949dc379b1f2b07f2f1982d17e2f555023c7523
dhcp-client: Fix computation of timeouts.

The "min_timeout" variable maintained by the DHCP client is measured
in seconds from the time the state was entered, but dhclient_wait()
was interpreting it as seconds from now.  This made the DHCP client wait
much longer than necessary in some cases.
lib/dhcp-client.c