Skip to content

Commit

Permalink
Fixed the udp-stream example: use the new RPL interface, reduce RAM u…
Browse files Browse the repository at this point in the history
…sage
  • Loading branch information
simonduq committed Aug 30, 2012
1 parent c425e51 commit 1bb055b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/udp-stream/project-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
4 changes: 2 additions & 2 deletions examples/udp-stream/udp-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1bb055b

Please sign in to comment.