Just update the node rank and let rpl_process_parent_event take care of the rest

This commit is contained in:
Nicolas Tsiftes 2011-02-07 17:29:23 +01:00
parent e3638d2791
commit aeca16d01f

View file

@ -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;
}
}