summaryrefslogtreecommitdiffstats
path: root/src/net/retry.c
diff options
context:
space:
mode:
authorMichael Brown2008-06-11 10:37:58 +0200
committerMichael Brown2008-06-11 10:37:58 +0200
commit32e8ab4df028248665456e3d6a42e1285b332291 (patch)
tree16e093fbd2a880049c535093edb945e4451c415e /src/net/retry.c
parent[dhcp] Do not transition to DHCPREQUEST without a valid DHCPOFFER (diff)
downloadipxe-32e8ab4df028248665456e3d6a42e1285b332291.tar.gz
ipxe-32e8ab4df028248665456e3d6a42e1285b332291.tar.xz
ipxe-32e8ab4df028248665456e3d6a42e1285b332291.zip
[retry] Add start_timer_fixed()
Allow for timers to be started with fixed timeouts.
Diffstat (limited to 'src/net/retry.c')
-rw-r--r--src/net/retry.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/net/retry.c b/src/net/retry.c
index 90b89711..3c934018 100644
--- a/src/net/retry.c
+++ b/src/net/retry.c
@@ -74,15 +74,14 @@ void start_timer ( struct retry_timer *timer ) {
}
/**
- * Start timer with no delay
+ * Start timer with a specified fixed timeout
*
* @v timer Retry timer
- *
- * This starts the timer running with a zero timeout value.
+ * @v timeout Timeout, in ticks
*/
-void start_timer_nodelay ( struct retry_timer *timer ) {
+void start_timer_fixed ( struct retry_timer *timer, unsigned long timeout ) {
start_timer ( timer );
- timer->timeout = 0;
+ timer->timeout = timeout;
}
/**