diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:59:23 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 17:53:06 -0500 |
commit | d7310c7e63ca9ffd42527dc9735cb505cbe908b7 (patch) | |
tree | 385b3a835855e429d85300bf65973adb60153caf /drivers | |
parent | 46c495d52400965fc54ada7e0b9024192b9234ba (diff) | |
download | u-boot-d7310c7e63ca9ffd42527dc9735cb505cbe908b7.tar.gz u-boot-d7310c7e63ca9ffd42527dc9735cb505cbe908b7.tar.xz u-boot-d7310c7e63ca9ffd42527dc9735cb505cbe908b7.zip |
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')
-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 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; } |