As RPL Root, drop an incoming DIO from the same instance but different DAG
This commit is contained in:
parent
a6227e1e3e
commit
fd97136fee
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…
Add table
Reference in a new issue