mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-08 03:31:21 +00:00
No need to do the unspecified address twice. #if UIP_ND6_DEF_MAXDADNS > 0 if(uip_is_addr_unspecified(&UIP_IP_BUF->srcipaddr)) { /* DAD CASE */ .......... #else /* UIP_ND6_DEF_MAXDADNS > 0 */ if(uip_is_addr_unspecified(&UIP_IP_BUF->srcipaddr)) { /* DAD CASE */ goto discard; #endif /* UIP_ND6_DEF_MAXDADNS > 0 */ this logic will bring confusion, especially if you analyze the other ND functions (NUD, address resolution) .