RPL MRHOF with ETX: bypass weighted moving average when setting a parent's link metric for the first time

This commit is contained in:
Simon Duquennoy 2014-04-29 16:25:16 +02:00
parent b0f1199202
commit 33cfd92475
5 changed files with 20 additions and 9 deletions

View file

@ -652,7 +652,7 @@ dao_input(void)
PRINTF("RPL: Loop detected when receiving a unicast DAO from a node with a lower rank! (%u < %u)\n",
DAG_RANK(parent->rank, instance), DAG_RANK(dag->rank, instance));
parent->rank = INFINITE_RANK;
parent->updated = 1;
parent->flags |= RPL_PARENT_FLAG_UPDATED;
return;
}
@ -660,7 +660,7 @@ dao_input(void)
if(parent != NULL && parent == dag->preferred_parent) {
PRINTF("RPL: Loop detected when receiving a unicast DAO from our parent\n");
parent->rank = INFINITE_RANK;
parent->updated = 1;
parent->flags |= RPL_PARENT_FLAG_UPDATED;
return;
}
}