From: Ondrej Zajicek Date: Wed, 24 Mar 2010 09:39:14 +0000 (+0100) Subject: Update lastmod in 'ignored' case only for RIP routes. X-Git-Tag: v1.2.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d9a0d1f02134235bf686caf49af44232590c456;p=thirdparty%2Fbird.git Update lastmod in 'ignored' case only for RIP routes. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 1860b1a1f..802ea5fdd 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;