diff options
author | paul <paul> | 2006-08-27 06:49:29 +0000 |
---|---|---|
committer | paul <paul> | 2006-08-27 06:49:29 +0000 |
commit | 3eecf2de694cb27ab6c4ff2b0323475920f4cb73 (patch) | |
tree | 05f6998fd8897083c1772a72caf10f106e4ef6fc /ospfd/ospf_route.c | |
parent | 1594a73d4b3a2be731c76a915ef5a9bcbb892b3a (diff) | |
download | quagga-3eecf2de694cb27ab6c4ff2b0323475920f4cb73.tar.bz2 quagga-3eecf2de694cb27ab6c4ff2b0323475920f4cb73.tar.xz |
[ospfd] Bug #134, ospfd should be more robust to backward time change
2006-08-25 Paul Jakma <paul.jakma@sun.com>
* (general) Bug #134. Be more robust to backward time changes,
use the newly added libzebra time functions.
In most cases: recent_time -> recent_relative_time()
gettimeofday -> quagga_gettime (QUAGGA_CLK_MONOTONIC, ..)
time -> quagga_time.
(ospf_make_md5_digest) time() call deliberately not changed.
(ospf_external_lsa_refresh) remove useless gettimeofday, LSA
tv_orig time was already set in ospf_lsa_new, called via
ospf_external_lsa_new.
Diffstat (limited to 'ospfd/ospf_route.c')
-rw-r--r-- | ospfd/ospf_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c index e0f2565f..3a1fa999 100644 --- a/ospfd/ospf_route.c +++ b/ospfd/ospf_route.c @@ -47,7 +47,7 @@ ospf_route_new () new = XCALLOC (MTYPE_OSPF_ROUTE, sizeof (struct ospf_route)); - new->ctime = time (NULL); + new->ctime = quagga_time (NULL); new->mtime = new->ctime; new->paths = list_new (); new->paths->del = (void (*) (void *))ospf_path_free; |