From: Jon Loeliger Date: Fri, 27 Jul 2007 10:54:05 -0500 Subject: [U-Boot-Users] [PATCH] New CONFIG_BOOTP_SERVER option In-Reply-To: References: <1defaf580707121538y65db81c9y748f14b9a62ea31b@mail.gmail.com> <20070713232108.2EF9E353A08@atlas.denx.de> <1defaf580707151252u7ccfad5dte1c2f1f033e41923@mail.gmail.com> <8F0FEC9B-0D83-43D4-AD0A-156C5333B6F3@savantav.com> <1185378689.14362.6.camel@saruman.qstreams.net> Message-ID: <1185551645.8055.1.camel@ld0161-tx32> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2007-07-27 at 09:25, Wilson Callan wrote: > Added CONFIG_BOOTP_SERVER to allow the tftp server to be different > from the bootp server > > Signed-off-by: Wilson Callan > > diff --git a/include/cmd_confdefs.h b/include/cmd_confdefs.h > index b3ccdce..581dbf7 100644 > --- a/include/cmd_confdefs.h > +++ b/include/cmd_confdefs.h > @@ -169,6 +169,7 @@ > #define CONFIG_BOOTP_SEND_HOSTNAME 0x00000100 > #define CONFIG_BOOTP_NTPSERVER 0x00000200 > #define CONFIG_BOOTP_TIMEOFFSET 0x00000400 > +#define CONFIG_BOOTP_SERVER 0x00000800 > #define CONFIG_BOOTP_VENDOREX 0x80000000 > @@ -178,7 +179,8 @@ > #define CONFIG_BOOTP_DEFAULT (CONFIG_BOOTP_SUBNETMASK | \ > CONFIG_BOOTP_GATEWAY | \ > CONFIG_BOOTP_HOSTNAME | \ > - CONFIG_BOOTP_BOOTPATH) > + CONFIG_BOOTP_BOOTPATH | \ > + CONFIG_BOOTP_SERVER) > #ifndef CONFIG_BOOTP_MASK > #define CONFIG_BOOTP_MASK CONFIG_BOOTP_DEFAULT > diff --git a/net/bootp.c b/net/bootp.c > index 1de9a8f..2c05f2e 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 (CONFIG_BOOTP_MASK & CONFIG_BOOTP_SERVER) > 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)); Any chance we can get this patch rebased on the version of things in the u-boot-testing tree? It would save everyone a bunch of trouble! Thanks, jdl