rpl_get_dag is no longer needed since rpl_set_root returns the dag pointer.

This commit is contained in:
nvt-se 2010-06-03 15:24:13 +00:00
parent c201058325
commit a9498df8f5

View file

@ -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();