[retry] Rewrite unrelicensable portions of retry.c

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-03-05 11:04:47 +00:00
parent bfbb2b8f1c
commit 47ad8fc1ba
4 changed files with 72 additions and 41 deletions

View File

@@ -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 );
}