We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cad7bd commit 7b39e25Copy full SHA for 7b39e25
source/RPL/rpl_downward.c
@@ -1883,7 +1883,7 @@ void rpl_instance_address_registration_done(protocol_interface_info_entry_t *int
1883
if (status == SOCKET_TX_DONE) {
1884
/* State_timer is 1/10 s. Set renewal to 75-85% of lifetime */
1885
if_address_entry_t *address = rpl_interface_addr_get(interface, dao_target->prefix);
1886
- if (address) {
+ if (address && address->source != ADDR_SOURCE_DHCP) {
1887
address->state_timer = (address->preferred_lifetime * randLIB_get_random_in_range(75, 85) / 10);
1888
}
1889
neighbour->confirmed = true;
0 commit comments