浏览代码

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>
Joe Hershberger 13 年之前
父节点
当前提交
d7310c7e63
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      drivers/net/netconsole.c

+ 6 - 0
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;
 }