From 8a89f90e3e94969f953dd163325ebfa153192f20 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Wed, 18 Jan 2012 06:12:24 -0800 Subject: [PATCH] Update to the newest RPL API --- examples/ipv6/simple-udp-rpl/unicast-receiver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ipv6/simple-udp-rpl/unicast-receiver.c b/examples/ipv6/simple-udp-rpl/unicast-receiver.c index 69ba6f943..207c0fd27 100644 --- a/examples/ipv6/simple-udp-rpl/unicast-receiver.c +++ b/examples/ipv6/simple-udp-rpl/unicast-receiver.c @@ -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");