From 0f56d838ec7219714ec07e473956ed0caf3573e4 Mon Sep 17 00:00:00 2001 From: idelamer Date: Fri, 17 Jun 2011 11:06:06 +0000 Subject: [PATCH] Process IPv6 packets arriving from non-Ethernet links. --- src/api/tcpip.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/tcpip.c b/src/api/tcpip.c index 9cda0a9d..6688870e 100644 --- a/src/api/tcpip.c +++ b/src/api/tcpip.c @@ -103,6 +103,11 @@ tcpip_thread(void *arg) ethernet_input(msg->msg.inp.p, msg->msg.inp.netif); } else #endif /* LWIP_ETHERNET */ +#if LWIP_IPV6 + if ((*((unsigned char *)(msg->msg.inp.p->payload)) & 0xf0) == 0x60) { + ip6_input(msg->msg.inp.p, msg->msg.inp.netif); + } else +#endif /* LWIP_IPV6 */ { ip_input(msg->msg.inp.p, msg->msg.inp.netif); }