mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
fixed so that trickle timer rpl config is updated at global repair
This commit is contained in:
parent
b8e2d33e06
commit
6edccf35a6
@ -1037,6 +1037,14 @@ global_repair(uip_ipaddr_t *from, rpl_dag_t *dag, rpl_dio_t *dio)
|
|||||||
|
|
||||||
remove_parents(dag, 0);
|
remove_parents(dag, 0);
|
||||||
dag->version = dio->version;
|
dag->version = dio->version;
|
||||||
|
|
||||||
|
/* copy parts of the configuration so that it propagates in the network */
|
||||||
|
dag->instance->dio_intdoubl = dio->dag_intdoubl;
|
||||||
|
dag->instance->dio_intmin = dio->dag_intmin;
|
||||||
|
dag->instance->dio_redundancy = dio->dag_redund;
|
||||||
|
dag->instance->default_lifetime = dio->default_lifetime;
|
||||||
|
dag->instance->lifetime_unit = dio->lifetime_unit;
|
||||||
|
|
||||||
dag->instance->of->reset(dag);
|
dag->instance->of->reset(dag);
|
||||||
dag->min_rank = INFINITE_RANK;
|
dag->min_rank = INFINITE_RANK;
|
||||||
RPL_LOLLIPOP_INCREMENT(dag->instance->dtsn_out);
|
RPL_LOLLIPOP_INCREMENT(dag->instance->dtsn_out);
|
||||||
|
Loading…
Reference in New Issue
Block a user