diff options
| author | Alex Williamson | 2015-01-26 18:54:29 +0100 |
|---|---|---|
| committer | Michael Brown | 2015-02-25 17:58:43 +0100 |
| commit | 47aebc24d3d2aa45cde234f556d31319cc9a2b71 (patch) | |
| tree | c944ab35ccf79434781e81f42f5db845ec1206eb /src/include/ipxe/dhcp.h | |
| parent | [zbin] Use LZMA compression (diff) | |
| download | ipxe-47aebc24d3d2aa45cde234f556d31319cc9a2b71.tar.gz ipxe-47aebc24d3d2aa45cde234f556d31319cc9a2b71.tar.xz ipxe-47aebc24d3d2aa45cde234f556d31319cc9a2b71.zip | |
[dhcp] Extract timing parameters out to config/dhcp.h
iPXE uses DHCP timeouts loosely based on values recommended by the
specification, but often abbreviated to reduce timeouts for reliable
and/or simple network topologies. Extract the DHCP timing parameters
to config/dhcp.h and document them. The resulting default iPXE
behavior is exactly the same, but downstreams are now afforded the
opportunity to implement spec-compliant behavior via config file
overrides.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/dhcp.h')
| -rw-r--r-- | src/include/ipxe/dhcp.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/include/ipxe/dhcp.h b/src/include/ipxe/dhcp.h index bcfb85cc1..a35794bdd 100644 --- a/src/include/ipxe/dhcp.h +++ b/src/include/ipxe/dhcp.h @@ -639,16 +639,6 @@ struct dhcphdr { */ #define DHCP_MIN_LEN 552 -/** Timeouts for sending DHCP packets */ -#define DHCP_MIN_TIMEOUT ( 1 * TICKS_PER_SEC ) -#define DHCP_MAX_TIMEOUT ( 10 * TICKS_PER_SEC ) - -/** Maximum time that we will wait for ProxyDHCP responses */ -#define PROXYDHCP_MAX_TIMEOUT ( 2 * TICKS_PER_SEC ) - -/** Maximum time that we will wait for Boot Server responses */ -#define PXEBS_MAX_TIMEOUT ( 3 * TICKS_PER_SEC ) - /** Settings block name used for DHCP responses */ #define DHCP_SETTINGS_NAME "dhcp" |
