[U-Boot] [PATCH v2] net: Add bootfile in DHCP Request
amessier.tyco at gmail.com
amessier.tyco at gmail.com
Thu Jan 28 17:19:02 CET 2016
From: Alexandre Messier <amessier at 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 <amessier at 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
More information about the U-Boot
mailing list