/*---------------------------------------------------------------------------*/ rpl_parent_t * rpl_select_parent(rpl_dag_t *dag) { rpl_parent_t *best = best_parent(dag); if(best != NULL) { rpl_set_preferred_parent(dag, best); } return best; }
/*---------------------------------------------------------------------------*/ rpl_parent_t * rpl_select_parent(rpl_dag_t *dag) { rpl_parent_t *best = best_parent(dag); if(best != NULL) { rpl_set_preferred_parent(dag, best); dag->rank = dag->instance->of->calculate_rank(dag->preferred_parent, 0); } return best; }