From d540d2b5af21c0a89a18b512af0affc1c80cde34 Mon Sep 17 00:00:00 2001 From: Laurent Deru Date: Wed, 10 Sep 2014 16:57:27 +0200 Subject: [PATCH] Allow disabling of DIO suppression as required in RFC --- core/net/rpl/rpl-timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/rpl/rpl-timers.c b/core/net/rpl/rpl-timers.c index 4d4e8ca43..ea7bfe7f2 100644 --- a/core/net/rpl/rpl-timers.c +++ b/core/net/rpl/rpl-timers.c @@ -145,7 +145,7 @@ handle_dio_timer(void *ptr) if(instance->dio_send) { /* 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 instance->dio_totsend++; #endif /* RPL_CONF_STATS */