Fixed the udp-stream example: use the new RPL interface, reduce RAM usage

This commit is contained in:
simonduq 2012-08-30 13:12:26 +02:00
parent c425e51911
commit 1bb055bae6
2 changed files with 5 additions and 5 deletions

View File

@ -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. */

View File

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