added function for checking downward route and added configuration for DAO NACK repair - default off
This commit is contained in:
parent
ee65a3982c
commit
1fcef0f90d
5 changed files with 53 additions and 2 deletions
|
@ -1156,6 +1156,9 @@ global_repair(uip_ipaddr_t *from, rpl_dag_t *dag, rpl_dio_t *dio)
|
|||
|
||||
RPL_STAT(rpl_stats.global_repairs++);
|
||||
}
|
||||
|
||||
void rpl_set_downward_link(uint8_t link);
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
rpl_local_repair(rpl_instance_t *instance)
|
||||
|
@ -1174,6 +1177,9 @@ rpl_local_repair(rpl_instance_t *instance)
|
|||
}
|
||||
}
|
||||
|
||||
/* no downward link anymore */
|
||||
rpl_set_downward_link(0);
|
||||
|
||||
rpl_reset_dio_timer(instance);
|
||||
/* Request refresh of DAO registrations next DIO */
|
||||
RPL_LOLLIPOP_INCREMENT(instance->dtsn_out);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue