diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-12-02 14:33:34 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-12-02 14:33:34 +0100 |
commit | e8b29bdc8dc34d4a0358458907a5d8ac29011d28 (patch) | |
tree | 434227e857740a8c65a9faa4aaf0dae62f983ffb | |
parent | 4b84bd4554b2a9331055bfd8d02a0bab0d10df92 (diff) | |
download | bird-e8b29bdc8dc34d4a0358458907a5d8ac29011d28.tar bird-e8b29bdc8dc34d4a0358458907a5d8ac29011d28.zip |
Fixes one missing log message.
-rw-r--r-- | nest/rt-table.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index e0cd797..186a2dc 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -504,11 +504,10 @@ rte_recalculate(rtable *table, net *net, struct proto *p, struct proto *src, rte net->routes->next = new; 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) rte_trace_in(D_ROUTES, p, old, "removed"); else if (net->routes) |