summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_route.c
diff options
context:
space:
mode:
authorTakashi Sogabe <sogabe@iij.ad.jp>2009-06-22 13:07:02 +0900
committerPaul Jakma <paul@quagga.net>2009-06-22 12:21:22 +0100
commit86f72dcba35f055b5344deeb5f057c2f1d9a291f (patch)
treeb128af27119cf27a709423814709a5a0bde98bae /ospf6d/ospf6_route.c
parentf7e0db80693aea7f5fd3d8d4f00e97347c8d0ba5 (diff)
downloadquagga-86f72dcba35f055b5344deeb5f057c2f1d9a291f.tar.bz2
quagga-86f72dcba35f055b5344deeb5f057c2f1d9a291f.tar.xz
Convert ospf6d over to quagga_gettime() wrappers.
Diffstat (limited to 'ospf6d/ospf6_route.c')
-rw-r--r--ospf6d/ospf6_route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index a89ed7e7..9832f570 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -378,7 +378,7 @@ ospf6_route_add (struct ospf6_route *route,
else if (IS_OSPF6_DEBUG_ROUTE (TABLE))
zlog_debug ("%s: route add: %s", ospf6_route_table_name (table), buf);
- gettimeofday (&now, NULL);
+ quagga_gettime (QUAGGA_CLK_MONOTONIC, &now);
node = route_node_get (table->table, &route->prefix);
route->rnode = node;
@@ -792,7 +792,7 @@ ospf6_route_show (struct vty *vty, struct ospf6_route *route)
char duration[16], ifname[IFNAMSIZ];
struct timeval now, res;
- gettimeofday (&now, (struct timezone *) NULL);
+ quagga_gettime (QUAGGA_CLK_MONOTONIC, &now);
timersub (&now, &route->changed, &res);
timerstring (&res, duration, sizeof (duration));
@@ -841,7 +841,7 @@ ospf6_route_show_detail (struct vty *vty, struct ospf6_route *route)
char duration[16];
int i;
- gettimeofday (&now, (struct timezone *) NULL);
+ quagga_gettime (QUAGGA_CLK_MONOTONIC, &now);
/* destination */
if (route->type == OSPF6_DEST_TYPE_LINKSTATE)