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.hershber...@ni.com> Cc: Joe Hershberger <joe.hershber...@gmail.com> --- Changes for v2: Changes for v3: - Rebased onto other changed patches - Fix comment style drivers/net/netconsole.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 744f4d1..19e563e 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; } -- 1.6.0.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot