added annotate when setting root and joining dag

This commit is contained in:
Joakim Eriksson 2011-02-22 16:15:16 +01:00
parent e9234a8404
commit 68e9fb2a5c

View file

@ -202,6 +202,9 @@ rpl_set_root(uip_ipaddr_t *dag_id)
PRINT6ADDR(&dag->dag_id);
PRINTF("\n");
ANNOTATE("#A root=%u\n",dag->dag_id.u8[sizeof(dag->dag_id) - 1]);
rpl_reset_dio_timer(dag, 1);
return dag;
@ -513,6 +516,9 @@ join_dag(uip_ipaddr_t *from, rpl_dio_t *dio)
PRINT6ADDR(&dag->dag_id);
PRINTF("\n");
ANNOTATE("#A join=%u\n",dag->dag_id.u8[sizeof(dag->dag_id) - 1]);
dag->default_lifetime = dio->default_lifetime;
dag->lifetime_unit = dio->lifetime_unit;