RPL: if a neighbor is unreachable, remove routes via this neighbor

This commit is contained in:
Simon Duquennoy 2015-11-30 19:17:17 +01:00 committed by Simon Duquennoy
parent b73b6082fc
commit 797bead5e5
4 changed files with 46 additions and 0 deletions

View file

@ -155,6 +155,12 @@ parent_is_acceptable(rpl_parent_t *p)
&& STEP_OF_RANK(p) <= MAX_STEP_OF_RANK;
}
/*---------------------------------------------------------------------------*/
static int
parent_has_usable_link(rpl_parent_t *p)
{
return parent_is_acceptable(p);
}
/*---------------------------------------------------------------------------*/
static rpl_parent_t *
best_parent(rpl_parent_t *p1, rpl_parent_t *p2)
{
@ -220,6 +226,7 @@ rpl_of_t rpl_of0 = {
dao_ack_callback,
#endif
parent_link_metric,
parent_has_usable_link,
parent_path_cost,
rank_via_parent,
best_parent,