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



--
View this message in context: 
http://lwip.100.n7.nabble.com/oxff-0x60-condition-do-not-match-for-received-IP6-packet-in-tcipip-thread-tp23481.html
Sent from the lwip-users mailing list archive at Nabble.com.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to