mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-21 23:31:11 +00:00
As RPL Root, drop an incoming DIO from the same instance but different DAG
This commit is contained in:
parent
a6227e1e3e
commit
fd97136fee
@ -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…
x
Reference in New Issue
Block a user