]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[dhcp] Handle DHCPNAK by returning to discovery state
authorMichael Brown <mcb30@ipxe.org>
Thu, 11 Mar 2021 15:54:26 +0000 (15:54 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 11 Mar 2021 16:04:19 +0000 (16:04 +0000)
commit1192edf394aaebde666c6aafda1c8b782b08a845
tree01a7c2eafaed69bf97feca388262c3fb903aa6f6
parent7c8fc2cae8769fff7d9fe8af3cef046995a3fd3e
[dhcp] Handle DHCPNAK by returning to discovery state

Handle a DHCPNAK by returning to the discovery state to allow iPXE to
attempt to obtain a replacement IPv4 address.

Reuse the existing logic for deferring discovery when the link is
blocked: this avoids hammering a misconfigured DHCP server with a
non-stop stream of requests and allows the DHCP process to eventually
time out and fail.

Originally-implemented-by: Blake Rouse <blake.rouse@canonical.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/udp/dhcp.c