fix bug in the initialization of LwIP

This commit is contained in:
Stefan Lankes 2011-07-04 10:52:30 -07:00
parent 0fe5027a63
commit f48c738d8e

View file

@ -31,6 +31,7 @@
#include <lwip/stats.h>
#include <lwip/udp.h>
#include <lwip/tcp.h>
#include <lwip/tcpip.h>
#include <lwip/dhcp.h>
#include <lwip/netif.h>
#include <lwip/timers.h>
@ -116,7 +117,7 @@ int STDCALL network_task(void* arg)
// start echo and ping server
echo_init();
//ping_init();
ping_init();
while(!done) {
#ifdef CONFIG_PCI
@ -142,11 +143,16 @@ int network_shutdown(void)
return 0;
}
static void tcp_init_ok(void* e)
{
kprintf("TCP/IP init COMPLETE!!");
}
int network_init(void)
{
#if defined(CONFIG_LWIP)
// Initialize lwIP modules
lwip_init();
tcpip_init(tcp_init_ok, NULL);
#endif
#if defined(CONFIG_LWIP) && (defined(CONFIG_PCI) || defined(CONFIG_ROCKCREEK))