]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: bootp: Fall back to BOOTP from DHCP when unit testing
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:47:53 +0000 (16:47 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
commitacb96c170d7c9f9aed1755efe56387127a7dff0b
treea57e7e21af287fa87145d0424e96e3f23b1b7549
parent7ccc6044e964829459fa089da01b742a442df65e
net: bootp: Fall back to BOOTP from DHCP when unit testing

If we sent a DHCP packet and get a BOOTP response from the server, we
shouldn't try to send a DHCPREQUEST packet, since it won't be DHCPACKed.
Transition straight to BIND. This is only enabled for UNIT_TEST to avoid
bloat, since I suspect the number of BOOTP servers in the wild is
vanishingly small.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
net/bootp.c