Skip to content

Commit

Permalink
Do not trig Renew again after RPL parent registration done state.
Browse files Browse the repository at this point in the history
Change-Id: I9c1bdd556cdf54299ead11a2ff53cd12c203646f
  • Loading branch information
Juha Heiskanen committed Sep 18, 2019
1 parent 3cad7bd commit 7b39e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/RPL/rpl_downward.c
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@ void rpl_instance_address_registration_done(protocol_interface_info_entry_t *int
if (status == SOCKET_TX_DONE) {
/* State_timer is 1/10 s. Set renewal to 75-85% of lifetime */
if_address_entry_t *address = rpl_interface_addr_get(interface, dao_target->prefix);
if (address) {
if (address && address->source != ADDR_SOURCE_DHCP) {
address->state_timer = (address->preferred_lifetime * randLIB_get_random_in_range(75, 85) / 10);
}
neighbour->confirmed = true;
Expand Down

0 comments on commit 7b39e25

Please sign in to comment.