Allow disabling of DIO suppression as required in RFC

This commit is contained in:
Laurent Deru 2014-09-10 16:57:27 +02:00
parent 7286c9a635
commit d540d2b5af

View File

@ -145,7 +145,7 @@ handle_dio_timer(void *ptr)
if(instance->dio_send) { if(instance->dio_send) {
/* send DIO if counter is less than desired redundancy */ /* send DIO if counter is less than desired redundancy */
if(instance->dio_counter < instance->dio_redundancy) { if(instance->dio_redundancy != 0 && instance->dio_counter < instance->dio_redundancy) {
#if RPL_CONF_STATS #if RPL_CONF_STATS
instance->dio_totsend++; instance->dio_totsend++;
#endif /* RPL_CONF_STATS */ #endif /* RPL_CONF_STATS */