summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/dhcp.h
diff options
context:
space:
mode:
authorAndrew Schran2008-08-12 02:05:26 +0200
committerMichael Brown2008-08-12 02:05:26 +0200
commitff2b6a512d7a4f351e48dc9a042099a1010342a3 (patch)
tree20c909769e5cd2efdba9dc114cc69aa5d7c5db6d /src/include/gpxe/dhcp.h
parent[iSCSI] Add support for mutual CHAP (diff)
downloadipxe-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/include/gpxe/dhcp.h')
-rw-r--r--src/include/gpxe/dhcp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h
index 7ce65399..c5ed0ead 100644
--- a/src/include/gpxe/dhcp.h
+++ b/src/include/gpxe/dhcp.h
@@ -466,6 +466,10 @@ struct dhcphdr {
/** Maximum time that we will wait for ProxyDHCP responses */
#define PROXYDHCP_WAIT_TIME ( TICKS_PER_SEC * 1 )
+/** Timeouts for sending DHCP packets */
+#define DHCP_MIN_TIMEOUT ( 1 * TICKS_PER_SEC )
+#define DHCP_MAX_TIMEOUT ( 10 * TICKS_PER_SEC )
+
/** Settings block name used for DHCP responses */
#define DHCP_SETTINGS_NAME "dhcp"