mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue