mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[retry] Rewrite unrelicensable portions of retry.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user