From 5d110f0aa69f065ee386ec1840dfee1e8cc46bc1 Mon Sep 17 00:00:00 2001 From: Wilson Callan Date: Sat, 28 Jul 2007 10:56:13 -0400 Subject: 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 Signed-off-by: Ben Warren --- net/bootp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/bootp.c') diff --git a/net/bootp.c b/net/bootp.c index 80f53bc886..be1ee332a5 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -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)); -- cgit v1.2.1