How to select the best parent in RPL Protocol using contiki cooja simulator

  • In rpl folder rpl-mrhof.c file
  • Function name : static rpl_parent_t * best_parent(rpl_parent_t *p1, rpl_parent_t *p2)
  • return p1_metric < p2_metric ? p1 : p2;