Skip to content

Commit 05b1fe8

Browse files
author
Mika Tervonen
committed
do not send periodic DIO messages if DAO registration is not done
1 parent 6acee47 commit 05b1fe8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/RPL/rpl_upward.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,10 @@ void rpl_upward_dio_timer(rpl_instance_t *instance, uint16_t ticks)
16661666
if (rpl_dodag_am_leaf(dodag) && !instance->poison_count) {
16671667
return;
16681668
}
1669+
/* If we are waiting for DAO or DAO registration is needed we dont send periodic DIOs */
1670+
if (instance->dao_in_transit || instance->delay_dao_timer > 0) {
1671+
return;
1672+
}
16691673
if (trickle_timer(&instance->dio_timer, &dodag->dio_timer_params, ticks)) {
16701674
instance->dio_not_consistent = false;
16711675
rpl_instance_dio_trigger(instance, NULL, NULL);

0 commit comments

Comments
 (0)