aboutsummaryrefslogtreecommitdiff
path: root/src/net/ipv4.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-06-15 18:13:36 +0100
committerMichael Brown <mcb30@ipxe.org>2010-06-22 14:30:20 +0100
commitc760ac3022ed655e857126ca8ed4df3bfc7ce15a (patch)
tree591b868661f9a15309772cab6ba6b88bc032e31b /src/net/ipv4.c
parent4bfd5b52c1fae75eb0449af626ec69543f9334fa (diff)
downloadipxe-c760ac3022ed655e857126ca8ed4df3bfc7ce15a.zip
ipxe-c760ac3022ed655e857126ca8ed4df3bfc7ce15a.tar.gz
ipxe-c760ac3022ed655e857126ca8ed4df3bfc7ce15a.tar.bz2
[retry] Add timer_init() wrapper function
Standardise on using timer_init() to initialise an embedded retry timer, to match the coding style used by other embedded objects. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r--src/net/ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 6d3d80a..2354097 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -224,8 +224,8 @@ static struct io_buffer * ipv4_reassemble ( struct io_buffer * iobuf ) {
free_iob ( iobuf );
/* Set the reassembly timer */
+ timer_init ( &fragbuf->frag_timer, ipv4_frag_expired );
fragbuf->frag_timer.timeout = IP_FRAG_TIMEOUT;
- fragbuf->frag_timer.expired = ipv4_frag_expired;
start_timer ( &fragbuf->frag_timer );
/* Add the fragment buffer to the list of fragment buffers */