Merge pull request #406 from cetic/hotfix-rplroot-discard-dio
Drop incoming DIO when RPL Root
This commit is contained in:
commit
90d39095f8
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue