Skip to content

Commit 332735b

Browse files
author
Juha Heiskanen
committed
Disabled Version number periodic update if Dodag max rank inrease is not 0.
Change-Id: I64d0f507002338bced82de07898a8bc56fb92159
1 parent 940de0b commit 332735b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/6LoWPAN/ws/ws_bbr_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ void ws_bbr_seconds_timer(protocol_interface_info_entry_t *cur, uint32_t seconds
455455
}
456456
// We update the RPL version in same time to allow nodes to reselect parent
457457
// As configuration is made so that devices cant move downward in dodag this allows it
458-
// TODO think the correct rate for this
459-
if (cur->ws_info->pan_information.pan_version && cur->ws_info->pan_information.pan_version % RPL_VERSION_LIFETIME / PAN_VERSION_LIFETIME == 0) {
458+
// Version number update is only done if DoDAG MAX Rank Increase parameter is 0
459+
if (rpl_conf.dag_max_rank_increase == 0 && cur->ws_info->pan_information.pan_version && cur->ws_info->pan_information.pan_version % RPL_VERSION_LIFETIME / PAN_VERSION_LIFETIME == 0) {
460460
// Third the rate of configuration version change at default 5 hours
461461
rpl_control_increment_dodag_version(protocol_6lowpan_rpl_root_dodag);
462462
}

0 commit comments

Comments
 (0)