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:
committed by
Ben Warren
parent
50cca8b976
commit
5d110f0aa6
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user