mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-22 20:24:27 +01:00
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>
This commit is contained in:
parent
d8877e6f8c
commit
b2b7fbc33f
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue