Babel: Do not keep an infeasible route as selected
When a route becomes infeasible it should not be kept as selected; this is forbidden by section 3.6 of the RFC and prevents subsequent updates from the same router ID from replacing it. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
This commit is contained in:
parent
5d6ca22085
commit
0f67366601
1 changed files with 5 additions and 0 deletions
|
@ -565,6 +565,11 @@ babel_select_route(struct babel_entry *e)
|
|||
|
||||
babel_send_seqno_request(e);
|
||||
babel_announce_rte(p, e);
|
||||
|
||||
/* Section 3.6 of the RFC forbids an infeasible from being selected. This
|
||||
is cleared after announcing the route to the core to make sure an
|
||||
unreachable route is propagated first. */
|
||||
e->selected_in = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue