From d7310c7e63ca9ffd42527dc9735cb505cbe908b7 Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Wed, 23 May 2012 07:59:23 +0000 Subject: [PATCH] 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 --- drivers/net/netconsole.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.25.1