summaryrefslogtreecommitdiff
path: root/libexec/bootpd
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2010-12-06 09:39:36 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2010-12-06 09:39:36 +0000
commitc1325861adb19c52600611cf69a7a3c3873a087e (patch)
tree72c39df0372d83a63097dc57e2b94932b637949b /libexec/bootpd
parent441238cfdc25f4a72c8b33a427183aac1a4f7918 (diff)
downloadsrc-test2-c1325861adb19c52600611cf69a7a3c3873a087e.tar.gz
src-test2-c1325861adb19c52600611cf69a7a3c3873a087e.zip
Notes
Diffstat (limited to 'libexec/bootpd')
-rw-r--r--libexec/bootpd/rtmsg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/bootpd/rtmsg.c b/libexec/bootpd/rtmsg.c
index b691edc238bb..8b81dabcccf4 100644
--- a/libexec/bootpd/rtmsg.c
+++ b/libexec/bootpd/rtmsg.c
@@ -126,7 +126,7 @@ int bsd_arp_set(ia, eaddr, len)
register struct sockaddr_dl *sdl;
register struct rt_msghdr *rtm = &(m_rtmsg.m_rtm);
u_char *ea;
- struct timeval time;
+ struct timespec tp;
int op = RTM_ADD;
getsocket();
@@ -140,8 +140,8 @@ int bsd_arp_set(ia, eaddr, len)
doing_proxy = flags = export_only = expire_time = 0;
/* make arp entry temporary */
- gettimeofday(&time, 0);
- expire_time = time.tv_sec + 20 * 60;
+ clock_gettime(CLOCK_MONOTONIC, &tp);
+ expire_time = tp.tv_sec + 20 * 60;
tryagain:
if (rtmsg(RTM_GET) < 0) {