mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-23 07:12:25 +00:00
New CONFIG_BOOTP_SERVERIP option
Added CONFIG_BOOTP_SERVERIP to allow the tftp server to be different from the bootp server Signed-off-by: Wilson Callan <wcallan@savantav.com> Signed-off-by: Ben Warren <bwarren@qstreams.com>
This commit is contained in:
parent
50cca8b976
commit
5d110f0aa6
2 changed files with 6 additions and 1 deletions
|
@ -120,10 +120,12 @@ static void BootpCopyNetParams(Bootp_t *bp)
|
|||
IPaddr_t tmp_ip;
|
||||
|
||||
NetCopyIP(&NetOurIP, &bp->bp_yiaddr);
|
||||
#if !defined(CONFIG_BOOTP_SERVERIP)
|
||||
NetCopyIP(&tmp_ip, &bp->bp_siaddr);
|
||||
if (tmp_ip != 0)
|
||||
NetCopyIP(&NetServerIP, &bp->bp_siaddr);
|
||||
memcpy (NetServerEther, ((Ethernet_t *)NetRxPkt)->et_src, 6);
|
||||
#endif
|
||||
if (strlen(bp->bp_file) > 0)
|
||||
copy_filename (BootFile, bp->bp_file, sizeof(BootFile));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue