Just update the node rank and let rpl_process_parent_event take care of the rest
This commit is contained in:
parent
e3638d2791
commit
aeca16d01f
1 changed files with 2 additions and 1 deletions
|
@ -508,7 +508,8 @@ dao_input(void)
|
|||
/* && uip_ds6_route_lookup(&prefix) == NULL*/) {
|
||||
PRINTF("RPL: Loop detected when receiving a unicast DAO from a node with a lower rank! (%u < %u)\n",
|
||||
DAG_RANK(p->rank, dag), DAG_RANK(dag->rank, dag));
|
||||
rpl_local_repair(dag);
|
||||
p->rank = INFINITE_RANK;
|
||||
p->updated = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue