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