Skip to content

Commit

Permalink
As RPL Root, drop an incoming DIO from the same instance but differen…
Browse files Browse the repository at this point in the history
…t DAG
  • Loading branch information
laurentderu authored and sdawans committed Nov 15, 2013
1 parent a6227e1 commit fd97136
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/net/rpl/rpl-dag.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,11 @@ rpl_process_dio(uip_ipaddr_t *from, rpl_dio_t *dio)
return;
}

if(instance->current_dag->rank == ROOT_RANK(instance) && instance->current_dag != dag) {
PRINTF("RPL: Root ignored DIO for different DAG\n");
return;
}

if(dag == NULL) {
PRINTF("RPL: Adding new DAG to known instance.\n");
rpl_add_dag(from, dio);
Expand Down

0 comments on commit fd97136

Please sign in to comment.