Merge pull request #647 from cetic/pr-select-dag-fix
rpl_select_parent: Only check parents belonging to the given dag
This commit is contained in:
commit
f34165bda4
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ best_parent(rpl_dag_t *dag)
|
|||
|
||||
p = nbr_table_head(rpl_parents);
|
||||
while(p != NULL) {
|
||||
if(p->rank == INFINITE_RANK) {
|
||||
if(p->dag != dag || p->rank == INFINITE_RANK) {
|
||||
/* ignore this neighbor */
|
||||
} else if(best == NULL) {
|
||||
best = p;
|
||||
|
|
Loading…
Reference in a new issue