Update to the newest RPL API
This commit is contained in:
parent
42a7125ce7
commit
8a89f90e3e
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue