Skip to content

Commit 7b39e25

Browse files
author
Juha Heiskanen
committed
Do not trig Renew again after RPL parent registration done state.
Change-Id: I9c1bdd556cdf54299ead11a2ff53cd12c203646f
1 parent 3cad7bd commit 7b39e25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/RPL/rpl_downward.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ void rpl_instance_address_registration_done(protocol_interface_info_entry_t *int
18831883
if (status == SOCKET_TX_DONE) {
18841884
/* State_timer is 1/10 s. Set renewal to 75-85% of lifetime */
18851885
if_address_entry_t *address = rpl_interface_addr_get(interface, dao_target->prefix);
1886-
if (address) {
1886+
if (address && address->source != ADDR_SOURCE_DHCP) {
18871887
address->state_timer = (address->preferred_lifetime * randLIB_get_random_in_range(75, 85) / 10);
18881888
}
18891889
neighbour->confirmed = true;

0 commit comments

Comments
 (0)