more printing in debug mode
This commit is contained in:
parent
eb9865ce79
commit
2a173b465a
|
@ -41,7 +41,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the uIP TCP/IP stack.
|
* This file is part of the uIP TCP/IP stack.
|
||||||
*
|
*
|
||||||
* $Id: uip6.c,v 1.3 2008/10/14 13:39:12 julienabeille Exp $
|
* $Id: uip6.c,v 1.4 2009/03/10 08:00:59 julienabeille Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1053,15 +1053,22 @@ uip_process(u8_t flag)
|
||||||
goto drop;
|
goto drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PRINTF("IPv6 packet received from ");
|
||||||
|
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||||
|
PRINTF(" to ");
|
||||||
|
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||||
|
PRINTF("\n");
|
||||||
|
|
||||||
if(uip_is_addr_mcast(&UIP_IP_BUF->srcipaddr)){
|
if(uip_is_addr_mcast(&UIP_IP_BUF->srcipaddr)){
|
||||||
UIP_STAT(++uip_stat.ip.drop);
|
UIP_STAT(++uip_stat.ip.drop);
|
||||||
|
PRINTF("Dropping packet, src is mcast\n");
|
||||||
goto drop;
|
goto drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!uip_netif_is_addr_my_unicast(&UIP_IP_BUF->destipaddr) &&
|
if(!uip_netif_is_addr_my_unicast(&UIP_IP_BUF->destipaddr) &&
|
||||||
!uip_netif_is_addr_my_solicited(&UIP_IP_BUF->destipaddr) &&
|
!uip_netif_is_addr_my_solicited(&UIP_IP_BUF->destipaddr) &&
|
||||||
!uip_is_addr_linklocal_allnodes_mcast(&UIP_IP_BUF->destipaddr)){
|
!uip_is_addr_linklocal_allnodes_mcast(&UIP_IP_BUF->destipaddr)){
|
||||||
|
PRINTF("Dropping packet, not for me\n");
|
||||||
UIP_STAT(++uip_stat.ip.drop);
|
UIP_STAT(++uip_stat.ip.drop);
|
||||||
goto drop;
|
goto drop;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue