Date: Tue, 11 Nov 2014 05:40:13 -0700 (MST)
From: mfkexpress <address@hidden>
To: address@hidden
Subject: [lwip-users] oxff==0x60 condition do not match for received
IP6 packet in tcipip_thread
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii
Hi,
I'm using lan9221 card in my device and trying to implement IPv6 in
it.
I can see that IPv6 packets are received on my device but ip6_input()
is not
being called in tcpip_thread() because following condition do not
satisfy in
my case:
#if LWIP_ETHERNET
if (msg->msg.inp.netif->flags & (NETIF_FLAG_ETHARP |
NETIF_FLAG_ETHERNET)) {
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);
}
Can anyone please tell me why this condition do not match though my
input
packets are IPv6 only and thay contains field "60" also.
Any help would be greatly appreciated.
Thanks & regards,
Mohsin