提交 d7310c7e 编写于 作者: J Joe Hershberger

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: NJoe Hershberger <joe.hershberger@ni.com>
上级 46c495d5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册