Skip to content

Commit a7b0027

Browse files
author
Mika Tervonen
committed
Suprress dio sending whenRPL is not yet ready
Dont send periodic DIOs if there are no addresses generated if address registration is ongoing
1 parent f8c9d54 commit a7b0027

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/RPL/rpl_upward.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,14 @@ void rpl_upward_dio_timer(rpl_instance_t *instance, uint16_t ticks)
17081708
if (rpl_dodag_am_leaf(dodag) && !instance->poison_count) {
17091709
return;
17101710
}
1711+
// We dont have any valid address in interface
1712+
if (ns_list_count(&instance->dao_targets) == 0) {
1713+
return;
1714+
}
1715+
/* Address registrations for parent ongoing*/
1716+
if (rpl_policy_parent_confirmation_requested() && instance->pending_neighbour_confirmation) {
1717+
return;
1718+
}
17111719
/* If we are waiting for DAO or DAO registration is needed we dont send periodic DIOs */
17121720
if (instance->dao_in_transit || instance->delay_dao_timer > 0) {
17131721
return;

0 commit comments

Comments
 (0)