Update to the newest RPL API

This commit is contained in:
Adam Dunkels 2012-01-18 06:12:24 -08:00
parent 42a7125ce7
commit 8a89f90e3e

View File

@ -107,8 +107,8 @@ create_rpl_dag(uip_ipaddr_t *ipaddr)
rpl_dag_t *dag;
uip_ipaddr_t prefix;
rpl_set_root(ipaddr);
dag = rpl_get_dag(RPL_ANY_INSTANCE);
rpl_set_root(RPL_DEFAULT_INSTANCE, ipaddr);
dag = rpl_get_any_dag();
uip_ip6addr(&prefix, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
rpl_set_prefix(dag, &prefix, 64);
PRINTF("created a new RPL dag\n");