u-boot/net
Michael Zaidman 3c172c4fdb NetLoop initialization bug
The patch fixes the bug of partial initialization of global network
parameters.

Upon u-boot's start up the first ping command causes a failure of the
consequent TFTP command. It happens in the recently added mechanism of
the NetLoop initialization where initialization of global network
parameters is separated in the NetInitLoop routine which is called per
env_id change. Thus, ping request will initialize the network parameters
necessary for ping operation only, afterwards the env_changed_id will be
set to the env_id that will prevent all following initialization requests
from other protocols.
The problem is that the initialized by ping subset of network parameters
is not sufficient for other protocols and particularly for TFTP which
requires the NetServerIp also.

Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2009-04-19 23:24:16 -07:00
..
bootp.c net: get mac address from environment and use eth util funcs 2009-03-20 22:39:09 +01:00
bootp.h net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
eth.c net: new utility functions for working with enetaddr's 2009-03-20 22:39:09 +01:00
Makefile net/sntp.c: move ifdef into Makefile COBJS-$(...) 2009-02-09 22:53:54 -08:00
net.c NetLoop initialization bug 2009-04-19 23:24:16 -07:00
nfs.c convert print_IPaddr() to %pI4 2009-03-20 22:39:09 +01: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/sntp.c: move ifdef into Makefile COBJS-$(...) 2009-02-09 22:53:54 -08:00
sntp.h * Patch by Masami Komiya, 30 Mar 2005: 2005-04-01 00:25:43 +00:00
tftp.c convert print_IPaddr() to %pI4 2009-03-20 22:39:09 +01:00
tftp.h Initial revision 2000-12-28 11:02:30 +00:00