summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-05-12 08:30:21 +0000
committerRoy Marples <roy@marples.name>2015-05-12 08:30:21 +0000
commitb3f1735bbff5416aa5c9c6f3a9258e4f7aeaeb80 (patch)
tree49aa325359ac7d0583c96de74f95fee9dd48ea92 /ipv6nd.c
parent629225460b229a86e467b0c667cc5f631b77dbab (diff)
downloaddhcpcd-b3f1735bbff5416aa5c9c6f3a9258e4f7aeaeb80.tar.xz
Replace get_monotonic usage with the standard clock_gettime.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipv6nd.c b/ipv6nd.c
index 9c3ee10a..270e858f 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -325,7 +325,7 @@ ipv6nd_expire(struct interface *ifp, uint32_t seconds)
if (ifp->ctx->ipv6 == NULL)
return;
- get_monotonic(&now);
+ clock_gettime(CLOCK_MONOTONIC, &now);
TAILQ_FOREACH(rap, ifp->ctx->ipv6->ra_routers, next) {
if (rap->iface == ifp) {
@@ -846,7 +846,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *dctx, struct interface *ifp,
rap->data_len = len;
}
- get_monotonic(&rap->received);
+ clock_gettime(CLOCK_MONOTONIC, &rap->received);
rap->flags = nd_ra->nd_ra_flags_reserved;
if (new_rap == 0 && rap->lifetime == 0)
logger(ifp->ctx, LOG_WARNING, "%s: %s router available",
@@ -1429,7 +1429,7 @@ ipv6nd_expirera(void *arg)
uint8_t expired, valid, validone;
ifp = arg;
- get_monotonic(&now);
+ clock_gettime(CLOCK_MONOTONIC, &now);
expired = 0;
timespecclear(&next);