1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #7160 from cgundogan/pr/rpl_parent_lifetime_fix

rpl: send dis near parent timeout
This commit is contained in:
BytesGalore 2017-06-09 07:30:07 +02:00 committed by GitHub
commit bb48818b40

View File

@ -259,7 +259,7 @@ void _update_lifetime(void)
parent = &gnrc_rpl_parents[i];
if (parent->state != 0) {
if (parent->lifetime > GNRC_RPL_LIFETIME_UPDATE_STEP) {
if (parent->lifetime > (2 * GNRC_RPL_LIFETIME_UPDATE_STEP)) {
if (parent->lifetime <= (2 * GNRC_RPL_LIFETIME_UPDATE_STEP)) {
gnrc_rpl_send_DIS(parent->dodag->instance, &parent->addr);
}
parent->lifetime -= GNRC_RPL_LIFETIME_UPDATE_STEP;