]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Update lastmod in 'ignored' case only for RIP routes.
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 24 Mar 2010 09:39:14 +0000 (10:39 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 24 Mar 2010 09:42:25 +0000 (10:42 +0100)
nest/rt-table.c

index 1860b1a1f8cc955c6a05819bb6558f1f1413bd25..802ea5fdd02fdc41e7fa19ad36949719ef6a7ef1 100644 (file)
@@ -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;