]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: Make sure NetLoop is initialized when using NetConsole
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 07:59:23 +0000 (07:59 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 22:53:06 +0000 (17:53 -0500)
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>
drivers/net/netconsole.c

index 744f4d15ec226c7b7b605cc8c011157a71f2f46a..19e563ea820a25eb1193c91b8f5a3b95bf581619 100644 (file)
@@ -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;
 }