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>
This commit is contained in:
parent
46c495d524
commit
d7310c7e63
|
@ -169,6 +169,12 @@ static int nc_start(void)
|
||||||
else
|
else
|
||||||
memset(nc_ether, 0, sizeof(nc_ether)); /* force arp request */
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue