From: Alexandre Messier <amess...@tycoint.com>

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.

Signed-off-by: Alexandre Messier <amess...@tycoint.com>
---

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(+)

diff --git a/net/bootp.c b/net/bootp.c
index 8aeddb0..036d9ff 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -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
-- 
2.7.0

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to