projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46c495d
)
net: Make sure NetLoop is initialized when using NetConsole
author
Joe Hershberger
<joe.hershberger@ni.com>
Wed, 23 May 2012 07:59:23 +0000
(07:59 +0000)
committer
Joe 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
patch
|
blob
|
history
diff --git
a/drivers/net/netconsole.c
b/drivers/net/netconsole.c
index 744f4d15ec226c7b7b605cc8c011157a71f2f46a..19e563ea820a25eb1193c91b8f5a3b95bf581619 100644
(file)
--- 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;
}