mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-30 21:32:30 +00:00
Mohamed Seliem
675d9325b9
DAD: Remove useless "if" that tests if the source address is unspecified
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) .
…
The Contiki Operating System
Contiki is an open source operating system that runs on tiny low-power microcontrollers and makes it possible to develop applications that make efficient use of the hardware while providing standardized low-power wireless communication for a range of hardware platforms.
Contiki is used in numerous commercial and non-commercial systems, such as city sound monitoring, street lights, networked electrical power meters, industrial monitoring, radiation monitoring, construction site monitoring, alarm systems, remote house monitoring, and so on.
For more information, see the Contiki website:
Description
Languages
C
83.7%
Java
11.7%
Python
1.8%
C++
0.7%
Assembly
0.6%
Other
1.3%