contiki-os/contiki — pull request #647 by laurentderu (2014-04-18 12:26:44+00:00)
Title: rpl_select_parent: Only check parents belonging to the given dag

The best_parent() function is used to select the best parent for the node inside the given DAG; however since the new neighbour table the parent are no longer listed in each DAGs but globally; so the best_parent() function could return a parent not belonging to the selected DAG. This leads to broken DAGs when more than one DODAG is configured.
With this fix, best_parent() ignores parent not belonging to the given DAG.