Fixes one missing log message.
This commit is contained in:
parent
4b84bd4554
commit
e8b29bdc8d
1 changed files with 3 additions and 4 deletions
|
@ -504,11 +504,10 @@ rte_recalculate(rtable *table, net *net, struct proto *p, struct proto *src, rte
|
||||||
net->routes->next = new;
|
net->routes->next = new;
|
||||||
rte_trace_in(D_ROUTES, p, new, "added");
|
rte_trace_in(D_ROUTES, p, new, "added");
|
||||||
}
|
}
|
||||||
else if (old && (p->debug & D_ROUTES))
|
|
||||||
{
|
|
||||||
/* Not really a case - the list of routes is correct, we just
|
|
||||||
log the route removal */
|
|
||||||
|
|
||||||
|
/* Log the route removal */
|
||||||
|
if (!new && old && (p->debug & D_ROUTES))
|
||||||
|
{
|
||||||
if (old != old_best)
|
if (old != old_best)
|
||||||
rte_trace_in(D_ROUTES, p, old, "removed");
|
rte_trace_in(D_ROUTES, p, old, "removed");
|
||||||
else if (net->routes)
|
else if (net->routes)
|
||||||
|
|
Loading…
Reference in a new issue