summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-03-24 10:39:14 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-03-24 10:42:25 +0100
commit4d9a0d1f02134235bf686caf49af44232590c456 (patch)
tree3e49c1d7588f8437b289db31eaa0958e8d2bb56d /nest
parentaa4612480424ad2fede0cd4ae4c7a893f61c6c0f (diff)
downloadbird-4d9a0d1f02134235bf686caf49af44232590c456.tar
bird-4d9a0d1f02134235bf686caf49af44232590c456.zip
Update lastmod in 'ignored' case only for RIP routes.
Diffstat (limited to 'nest')
-rw-r--r--nest/rt-table.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 1860b1a..802ea5f 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -443,7 +443,12 @@ rte_recalculate(rtable *table, net *net, struct proto *p, struct proto *src, rte
stats->imp_updates_ignored++;
rte_trace_in(D_ROUTES, p, new, "ignored");
rte_free_quick(new);
- old->lastmod = now;
+#ifdef CONFIG_RIP
+ /* lastmod is used internally by RIP as the last time
+ when the route was received. */
+ if (src->proto == &proto_rip)
+ old->lastmod = now;
+#endif
return;
}
*k = old->next;