aboutsummaryrefslogtreecommitdiff
path: root/src/net/ipv4.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-06-15 18:16:02 +0100
committerMichael Brown <mcb30@ipxe.org>2010-06-22 14:32:49 +0100
commit5fa6775b617d4e2b7911c062996fd5ffe799e4cb (patch)
treea94cc1ac6413f148db36fa9b25dab6ec874cae81 /src/net/ipv4.c
parentc760ac3022ed655e857126ca8ed4df3bfc7ce15a (diff)
downloadipxe-5fa6775b617d4e2b7911c062996fd5ffe799e4cb.zip
ipxe-5fa6775b617d4e2b7911c062996fd5ffe799e4cb.tar.gz
ipxe-5fa6775b617d4e2b7911c062996fd5ffe799e4cb.tar.bz2
[retry] Use start_timer_fixed() instead of direct timeout manipulation
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r--src/net/ipv4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 2354097..9548652 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -225,8 +225,7 @@ static struct io_buffer * ipv4_reassemble ( struct io_buffer * iobuf ) {
/* Set the reassembly timer */
timer_init ( &fragbuf->frag_timer, ipv4_frag_expired );
- fragbuf->frag_timer.timeout = IP_FRAG_TIMEOUT;
- start_timer ( &fragbuf->frag_timer );
+ start_timer_fixed ( &fragbuf->frag_timer, IP_FRAG_TIMEOUT );
/* Add the fragment buffer to the list of fragment buffers */
list_add ( &fragbuf->list, &frag_buffers );