diff options
author | Andrew Schran | 2008-08-12 02:05:26 +0200 |
---|---|---|
committer | Michael Brown | 2008-08-12 02:05:26 +0200 |
commit | ff2b6a512d7a4f351e48dc9a042099a1010342a3 (patch) | |
tree | 20c909769e5cd2efdba9dc114cc69aa5d7c5db6d /src/net/udp | |
parent | [iSCSI] Add support for mutual CHAP (diff) | |
download | ipxe-ff2b6a512d7a4f351e48dc9a042099a1010342a3.tar.gz ipxe-ff2b6a512d7a4f351e48dc9a042099a1010342a3.tar.xz ipxe-ff2b6a512d7a4f351e48dc9a042099a1010342a3.zip |
[retry] Added configurable timeouts to retry timer
New min_timeout and max_timeout fields in struct retry_timer allow
users of this timer to set their own desired minimum and maximum
timeouts, without being constrained to a single global minimum and
maximum. Users of the timer can still elect to use the default global
values by leaving the min_timeout and max_timeout fields as 0.
Diffstat (limited to 'src/net/udp')
-rw-r--r-- | src/net/udp/dhcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 93eee6e9..149bdfb5 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -1059,6 +1059,8 @@ int start_dhcp ( struct job_interface *job, struct net_device *netdev ) { xfer_init ( &dhcp->xfer, &dhcp_xfer_operations, &dhcp->refcnt ); dhcp->netdev = netdev_get ( netdev ); dhcp->timer.expired = dhcp_timer_expired; + dhcp->timer.min_timeout = DHCP_MIN_TIMEOUT; + dhcp->timer.max_timeout = DHCP_MAX_TIMEOUT; dhcp->start = currticks(); /* Instantiate child objects and attach to our interfaces */ |