diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:59:23 (GMT) |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 22:53:06 (GMT) |
commit | d7310c7e63ca9ffd42527dc9735cb505cbe908b7 (patch) | |
tree | 385b3a835855e429d85300bf65973adb60153caf /drivers/net/netconsole.c | |
parent | 46c495d52400965fc54ada7e0b9024192b9234ba (diff) | |
download | u-boot-fsl-qoriq-d7310c7e63ca9ffd42527dc9735cb505cbe908b7.tar.xz |
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>
Diffstat (limited to 'drivers/net/netconsole.c')
-rw-r--r-- | 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; } |