diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-03-05 11:04:47 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-03-05 11:06:03 +0000 |
commit | 47ad8fc1bac567c2a1a181392e535684e56edfdc (patch) | |
tree | 15e5d69a6d2c7d2de3937187f38a19c344e238ba /src/net/udp | |
parent | bfbb2b8f1cbcb169b38c3c2d8ff89874facaa920 (diff) | |
download | ipxe-47ad8fc1bac567c2a1a181392e535684e56edfdc.tar.gz |
[retry] Rewrite unrelicensable portions of retry.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/udp')
-rw-r--r-- | src/net/udp/dhcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 2e75ac815..8fe2774fd 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -278,8 +278,9 @@ static void dhcp_set_state ( struct dhcp_session *dhcp, dhcp->state = state; dhcp->start = currticks(); stop_timer ( &dhcp->timer ); - dhcp->timer.min_timeout = state->min_timeout_sec * TICKS_PER_SEC; - dhcp->timer.max_timeout = state->max_timeout_sec * TICKS_PER_SEC; + set_timer_limits ( &dhcp->timer, + ( state->min_timeout_sec * TICKS_PER_SEC ), + ( state->max_timeout_sec * TICKS_PER_SEC ) ); start_timer_nodelay ( &dhcp->timer ); } |