summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-18 12:49:46 +0200
committerMartin Mares <mj@ucw.cz>1998-10-18 12:49:46 +0200
commit570ce189d77fc40841e8e9f8f86ea3c3840aa450 (patch)
tree647e341d123d5ca04c1be9d10ca7e1b986ea9618
parent2a900b1b1565d778f19c10b087aea558f067bba7 (diff)
downloadbird-570ce189d77fc40841e8e9f8f86ea3c3840aa450.tar
bird-570ce189d77fc40841e8e9f8f86ea3c3840aa450.zip
Implemented `route last modified' time.
-rw-r--r--nest/rt-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 228be12..e04d599 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -80,7 +80,6 @@ rte_get_temp(rta *a)
e->attrs = a;
e->flags = 0;
e->pref = a->proto->preference;
- e->lastmod = 0; /* FIXME */
return e;
}
@@ -200,6 +199,7 @@ rte_update(net *net, struct proto *p, rte *new)
}
if (old)
rte_free(old);
+ new->lastmod = now;
}
void
@@ -207,7 +207,7 @@ rte_dump(net *n, rte *e)
{
if (n)
debug("%1I/%2d ", n->n.prefix, n->n.pxlen);
- debug("PF=%02x pref=%d lm=%d ", e->pflags, e->pref, e->lastmod);
+ debug("PF=%02x pref=%d lm=%d ", e->pflags, e->pref, now-e->lastmod);
rta_dump(e->attrs);
if (e->flags & REF_CHOSEN)
debug(" [*]");