[dhcp] Limit maximum number of DHCP discovery deferrals
authorMichael Brown <mcb30@ipxe.org>
Tue, 10 Nov 2015 14:05:46 +0000 (14:05 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 10 Nov 2015 14:05:46 +0000 (14:05 +0000)
commited0d7c4f6f8db7bda1e74567693a0c525b9cf159
tree9445c55745f75db057fb88d91c2989b0c7a68c4e
parentd5f7ee60e7228d8d62507087bbb39c733a622939
[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 <wissams@mellanox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/dhcp.h
src/net/udp/dhcp.c