rpl_get_dag is no longer needed since rpl_set_root returns the dag pointer.
This commit is contained in:
parent
c201058325
commit
a9498df8f5
1 changed files with 5 additions and 4 deletions
|
@ -212,10 +212,11 @@ PROCESS_THREAD(border_router_process, ev, data)
|
|||
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
|
||||
}
|
||||
|
||||
rpl_set_root((uip_ip6addr_t *)dag_id);
|
||||
dag = rpl_get_dag(RPL_ANY_INSTANCE);
|
||||
rpl_set_prefix(dag, &prefix, 64);
|
||||
PRINTF("created a new RPL dag\n");
|
||||
dag = rpl_set_root((uip_ip6addr_t *)dag_id);
|
||||
if(dag != NULL) {
|
||||
rpl_set_prefix(dag, &prefix, 64);
|
||||
PRINTF("created a new RPL dag\n");
|
||||
}
|
||||
|
||||
print_local_addresses();
|
||||
|
||||
|
|
Loading…
Reference in a new issue