mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-09 17:25:00 +00:00
rpl_select_parent: Only check parents belonging to the given dag
This commit is contained in:
@@ -712,7 +712,7 @@ best_parent(rpl_dag_t *dag)
|
|||||||
|
|
||||||
p = nbr_table_head(rpl_parents);
|
p = nbr_table_head(rpl_parents);
|
||||||
while(p != NULL) {
|
while(p != NULL) {
|
||||||
if(p->rank == INFINITE_RANK) {
|
if(p->dag != dag || p->rank == INFINITE_RANK) {
|
||||||
/* ignore this neighbor */
|
/* ignore this neighbor */
|
||||||
} else if(best == NULL) {
|
} else if(best == NULL) {
|
||||||
best = p;
|
best = p;
|
||||||
|
Reference in New Issue
Block a user