u-boot-brain/net
Peter Tyser 6a86bb6c25 net: Fix TftpStart() ip:filename bug
The TftpStart() function modifies the 'BootFile'
string when 'BootFile' contains both an IP address
and filename (eg 1.2.3.4:/path/file). This causes
subsequent calls to TftpStart to incorrectly parse
the TFTP filename and server IP address to use.
For example:

=> tftp 0x100000 10.52.0.62:/home/ptyser/non_existant
Speed: 100, half duplex
Using eTSEC1 device
TFTP from server 10.52.0.62; our IP address is 10.52.253.79
                 ^^^^^^^^^^ CORRECT
Filename '/home/ptyser/non_existant'.
          ^^^^^^^^^^^^^^^^^^^^^^^^^ CORRECT
Load address: 0x100000
Loading: *
TFTP error: 'File not found' (1)
Starting again

eTSEC2: No link.
Speed: 100, half duplex
Using eTSEC1 device
TFTP from server 10.52.0.33; our IP address is 10.52.253.79
                 ^^^^^^^^^^ WRONG
Filename '10.52.0.62'.
          ^^^^^^^^^^ WRONG
Load address: 0x100000
Loading: *
TFTP error: 'File not found' (1)
Starting again

TftpStart() was modified to not modify the 'BootFile' string.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-12-04 22:51:54 -08:00
..
bootp.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
bootp.h net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
eth.c Moved initialization of PPC4xx EMAC to cpu_eth_init() 2008-11-09 21:38:05 -08:00
Makefile Build: split COBJS value into multiple lines 2007-11-15 11:05:18 -07:00
net.c net: Add additional IP fragmentation check 2008-12-04 22:51:54 -08:00
nfs.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
nfs.h * Patch by Steven Scholz, 25 Feb 2004: 2004-02-27 00:07:27 +00:00
rarp.c net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
rarp.h Initial revision 2002-07-20 20:14:13 +00:00
sntp.c net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
sntp.h * Patch by Masami Komiya, 30 Mar 2005: 2005-04-01 00:25:43 +00:00
tftp.c net: Fix TftpStart() ip:filename bug 2008-12-04 22:51:54 -08:00
tftp.h Initial revision 2000-12-28 11:02:30 +00:00