From 47aebc24d3d2aa45cde234f556d31319cc9a2b71 Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Mon, 26 Jan 2015 10:54:29 -0700 Subject: [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 Modified-by: Michael Brown Signed-off-by: Michael Brown --- src/include/ipxe/dhcp.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/include') 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" -- cgit v1.2.3-55-g7522