summaryrefslogtreecommitdiffstats
path: root/src/net/udp
diff options
context:
space:
mode:
authorMichael Brown2015-03-05 12:04:47 +0100
committerMichael Brown2015-03-05 12:06:03 +0100
commit47ad8fc1bac567c2a1a181392e535684e56edfdc (patch)
tree15e5d69a6d2c7d2de3937187f38a19c344e238ba /src/net/udp
parent[linux] Rewrite headers included in all builds (diff)
downloadipxe-47ad8fc1bac567c2a1a181392e535684e56edfdc.tar.gz
ipxe-47ad8fc1bac567c2a1a181392e535684e56edfdc.tar.xz
ipxe-47ad8fc1bac567c2a1a181392e535684e56edfdc.zip
[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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c
index 2e75ac81..8fe2774f 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 );
}