[U-Boot] [PATCH v3 17/18] net: Make sure NetLoop is initialized when using NetConsole
Joe Hershberger
joe.hershberger at ni.com
Wed May 23 19:59:23 CEST 2012
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 at ni.com>
Cc: Joe Hershberger <joe.hershberger at gmail.com>
---
Changes for v2:
Changes for v3:
- Rebased onto other changed patches
- Fix comment style
drivers/net/netconsole.c | 6 ++++++
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;
}
--
1.6.0.2
More information about the U-Boot
mailing list