diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index 6fb5ac30..d52068d9 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -49,6 +49,8 @@ extern HANDLE hProc; #include +#include +#include #include #include #include @@ -622,6 +624,7 @@ uint8_t mmnif_get_destination(struct netif* netif, struct pbuf* p) return 1; + core = addr[0]; /* check if the address is legitimata else return router core again */ diff --git a/kernel/init.c b/kernel/init.c index 2ba3b81f..1a6aee55 100644 --- a/kernel/init.c +++ b/kernel/init.c @@ -37,6 +37,7 @@ #include #endif #include +#include void echo_init(void); void ping_init(void); @@ -117,6 +118,9 @@ int network_shutdown(void) int network_init(void) { + tcpip_init(NULL,NULL); + mmnif_open(); +#if 0 #if defined(CONFIG_LWIP) // Initialize lwIP modules lwip_init(); @@ -127,4 +131,5 @@ int network_init(void) #else return 0; #endif +#endif }