Makes RPL Initial Link Metric configurable

This commit is contained in:
Sébastien Dawans 2013-02-01 08:59:31 +01:00
parent bfc1e816de
commit 95ab192e88
4 changed files with 11 additions and 4 deletions

View file

@ -505,7 +505,7 @@ rpl_add_parent(rpl_dag_t *dag, rpl_dio_t *dio, uip_ipaddr_t *addr)
p->dag = dag;
p->rank = dio->rank;
p->dtsn = dio->dtsn;
p->link_metric = INITIAL_LINK_METRIC;
p->link_metric = RPL_INIT_LINK_METRIC;
memcpy(&p->mc, &dio->mc, sizeof(p->mc));
list_add(dag->parents, p);
return p;