diff --git a/examples/udp-stream/project-conf.h b/examples/udp-stream/project-conf.h index d90849f8c..7e7034686 100644 --- a/examples/udp-stream/project-conf.h +++ b/examples/udp-stream/project-conf.h @@ -35,13 +35,13 @@ /* Free some code and RAM space */ #define UIP_CONF_TCP 0 #undef UIP_CONF_DS6_NBR_NBU -#define UIP_CONF_DS6_NBR_NBU 12 +#define UIP_CONF_DS6_NBR_NBU 8 #undef UIP_CONF_DS6_ROUTE_NBU -#define UIP_CONF_DS6_ROUTE_NBU 12 +#define UIP_CONF_DS6_ROUTE_NBU 8 /* The total number of queuebuf */ #undef QUEUEBUF_CONF_NUM -#define QUEUEBUF_CONF_NUM 140 +#define QUEUEBUF_CONF_NUM 128 /* The number of queuebuf actually stored in RAM. If not set or equal to the total number of queuebuf, swapping is disabled, and CFS not linked. */ diff --git a/examples/udp-stream/udp-stream.c b/examples/udp-stream/udp-stream.c index a00d552b3..c53e72e91 100644 --- a/examples/udp-stream/udp-stream.c +++ b/examples/udp-stream/udp-stream.c @@ -101,8 +101,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");