mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 14:29:39 +00:00
fixed bug #43094 "The function tcpip_input() forget to handle IPv6"
This commit is contained in:
parent
974a853f40
commit
28783abbe2
@ -163,6 +163,9 @@ HISTORY
|
||||
|
||||
++ Bugfixes:
|
||||
|
||||
2015-02-11: patch by hichard
|
||||
* tcpip.c: fixed bug #43094 "The function tcpip_input() forget to handle IPv6"
|
||||
|
||||
2014-02-10: Simon Goldschmidt
|
||||
* netconn API: fixed that netconn_close/netconn_delete still used message passing
|
||||
for LWIP_TCPIP_CORE_LOCKING==1
|
||||
|
@ -115,7 +115,7 @@ tcpip_thread(void *arg)
|
||||
} else
|
||||
#endif /* LWIP_ETHERNET */
|
||||
#if LWIP_IPV6
|
||||
if ((*((unsigned char *)(msg->msg.inp.p->payload)) & 0xf0) == 0x60) {
|
||||
if (((*(u8_t*)(msg->msg.inp.p->payload)) & 0xf0) == 0x60) {
|
||||
ip6_input(msg->msg.inp.p, msg->msg.inp.netif);
|
||||
} else
|
||||
#endif /* LWIP_IPV6 */
|
||||
@ -192,6 +192,11 @@ tcpip_input(struct pbuf *p, struct netif *inp)
|
||||
ret = ethernet_input(p, inp);
|
||||
} else
|
||||
#endif /* LWIP_ETHERNET */
|
||||
#if LWIP_IPV6
|
||||
if (((*(u8_t*)(p->payload)) & 0xf0) == 0x60) {
|
||||
ret = ip6_input(p, inp);
|
||||
} else
|
||||
#endif /* LWIP_IPV6 */
|
||||
{
|
||||
ret = ip_input(p, inp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user