summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAlexandre Messier <amessier@tycoint.com>2016-01-28 11:19:02 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 17:19:43 -0600
commitb2b7fbc33ff1b990804e481153dd45de579cff75 (patch)
treed62416d4384782912f1469e07a8ee2a10e774aea /net
parentd8877e6f8ca4b6c08c0bc9c1fa8f855dc8776044 (diff)
downloadu-boot-imx-b2b7fbc33ff1b990804e481153dd45de579cff75.zip
u-boot-imx-b2b7fbc33ff1b990804e481153dd45de579cff75.tar.gz
u-boot-imx-b2b7fbc33ff1b990804e481153dd45de579cff75.tar.bz2
net: Add bootfile in DHCP Request
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@tycoint.com>
Diffstat (limited to 'net')
-rw-r--r--net/bootp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bootp.c b/net/bootp.c
index 8da2e9b..f2978a2 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