net: Add bootfile in DHCP Request
PATCH v2 1/1 net: Add bootfile in DHCP Request
From: Alexandre Messier <[email protected]>
Add the bootfile name in the DHCP Request packet, in addition to it already being sent in the DHCP Discover.
This is needed by some DHCP servers so that the bootfile name is properly returned by the server to the client in the DHCP Ack, as expected by U-Boot.
---
Changes since v1:
- Addressed Joe Hershberger's comment: Removed the config option, always send the bootfile name.
- Removed from patch series. v1 was in a series, but now the patch stands alone.
v1 can be found here:
Patchwork: https://patchwork.ozlabs.org/patch/571775/
Mailing list: http://lists.denx.de/pipermail/u-boot/2016-January/242839.html
net/bootp.c | 1 + 1 file changed, 1 insertion(+)
net/bootp.c +1 -0
@@ -949,6 +949,7 @@ static void dhcp_send_request_packet(struct bootp_hdr *bp_offer)net_write_ip (&bp->bp_giaddr, zero_ip);memcpy (bp->bp_chaddr, net_ethaddr,6 ); +copy_filename (bp->bp_file, net_boot_file_name,sizeof (bp->bp_file));/* * ID is the id of the OFFER packet
Signature · 1 line
2.7.0
Hi amessier.tyco at gmail.com,
https://patchwork.ozlabs.org/patch/574765/ was applied to u-boot-net.git.
Thanks!
-Joe