summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:59:23 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:53:06 -0500
commitd7310c7e63ca9ffd42527dc9735cb505cbe908b7 (patch)
tree385b3a835855e429d85300bf65973adb60153caf /drivers
parent46c495d52400965fc54ada7e0b9024192b9234ba (diff)
downloadu-boot-imx-d7310c7e63ca9ffd42527dc9735cb505cbe908b7.zip
u-boot-imx-d7310c7e63ca9ffd42527dc9735cb505cbe908b7.tar.gz
u-boot-imx-d7310c7e63ca9ffd42527dc9735cb505cbe908b7.tar.bz2
net: Make sure NetLoop is initialized when using NetConsole
Fix NetConsole bug that causes first packet header to claim a source IP address of 0.0.0.0 Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/netconsole.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index 744f4d1..19e563e 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -169,6 +169,12 @@ static int nc_start(void)
else
memset(nc_ether, 0, sizeof(nc_ether)); /* force arp request */
+ /*
+ * Initialize the static IP settings and buffer pointers
+ * incase we call NetSendUDPPacket before NetLoop
+ */
+ net_init();
+
return 0;
}