From ed0d7c4f6f8db7bda1e74567693a0c525b9cf159 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 10 Nov 2015 14:05:46 +0000 Subject: [dhcp] Limit maximum number of DHCP discovery deferrals For switches which remain permanently in the non-forwarding state (or which erroneously report a non-forwarding state), ensure that iPXE will eventually give up waiting for the link to become unblocked. Originally-fixed-by: Wissam Shoukair Signed-off-by: Michael Brown --- src/config/dhcp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config') diff --git a/src/config/dhcp.h b/src/config/dhcp.h index 49fe16b9..bff5b56d 100644 --- a/src/config/dhcp.h +++ b/src/config/dhcp.h @@ -24,6 +24,12 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); //#define DHCP_DISC_START_TIMEOUT_SEC 4 /* as per PXE spec */ //#define DHCP_DISC_END_TIMEOUT_SEC 32 /* as per PXE spec */ +/* + * Maximum number of discovery deferrals due to blocked links + * (e.g. from non-forwarding STP ports) + */ +#define DHCP_DISC_MAX_DEFERRALS 60 + /* * ProxyDHCP offers are given precedence by continue to wait for them * after a valid DHCPOFFER is received. We'll wait through this -- cgit v1.2.3-55-g7522