diff options
author | Takashi Sogabe <sogabe@iij.ad.jp> | 2009-06-22 13:07:02 +0900 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-22 12:21:22 +0100 |
commit | 86f72dcba35f055b5344deeb5f057c2f1d9a291f (patch) | |
tree | b128af27119cf27a709423814709a5a0bde98bae /ospf6d/ospf6_flood.c | |
parent | f7e0db80693aea7f5fd3d8d4f00e97347c8d0ba5 (diff) | |
download | quagga-86f72dcba35f055b5344deeb5f057c2f1d9a291f.tar.bz2 quagga-86f72dcba35f055b5344deeb5f057c2f1d9a291f.tar.xz |
Convert ospf6d over to quagga_gettime() wrappers.
Diffstat (limited to 'ospf6d/ospf6_flood.c')
-rw-r--r-- | ospf6d/ospf6_flood.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospf6d/ospf6_flood.c b/ospf6d/ospf6_flood.c index 8c460293..670c5d1d 100644 --- a/ospf6d/ospf6_flood.c +++ b/ospf6d/ospf6_flood.c @@ -225,7 +225,7 @@ ospf6_install_lsa (struct ospf6_lsa *lsa) ospf6_flood_clear (old); } - gettimeofday (&now, (struct timezone *) NULL); + quagga_gettime (QUAGGA_CLK_MONOTONIC, &now); if (! OSPF6_LSA_IS_MAXAGE (lsa)) lsa->expire = thread_add_timer (master, ospf6_lsa_expire, lsa, MAXAGE + lsa->birth.tv_sec - now.tv_sec); @@ -837,7 +837,7 @@ ospf6_receive_lsa (struct ospf6_neighbor *from, if (old) { struct timeval now, res; - gettimeofday (&now, (struct timezone *) NULL); + quagga_gettime (QUAGGA_CLK_MONOTONIC, &now); timersub (&now, &old->installed, &res); if (res.tv_sec < MIN_LS_ARRIVAL) { @@ -848,7 +848,7 @@ ospf6_receive_lsa (struct ospf6_neighbor *from, } } - gettimeofday (&new->received, (struct timezone *) NULL); + quagga_gettime (QUAGGA_CLK_MONOTONIC, &new->received); if (is_debug) zlog_debug ("Flood, Install, Possibly acknowledge the received LSA"); |