From: Joe Hershberger Date: Wed, 23 May 2012 07:59:23 +0000 (+0000) Subject: net: Make sure NetLoop is initialized when using NetConsole X-Git-Tag: v2012.07-rc1~51 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d7310c7e63ca9ffd42527dc9735cb505cbe908b7;p=oweals%2Fu-boot.git 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 --- diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 744f4d15ec..19e563ea82 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; }