summaryrefslogtreecommitdiffstats
path: root/usr.sbin/arp
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2010-11-30 16:00:59 +0000
committerglebius <glebius@FreeBSD.org>2010-11-30 16:00:59 +0000
commit7314841aaa5f42f82f315c02fb9751bdd11d40e9 (patch)
tree5524f7b711e3a35fb6cbc9de1b5e36570f3ea214 /usr.sbin/arp
parentbdd7d886f9757dc70bd9cac6002e46fab564d587 (diff)
downloadFreeBSD-src-7314841aaa5f42f82f315c02fb9751bdd11d40e9.zip
FreeBSD-src-7314841aaa5f42f82f315c02fb9751bdd11d40e9.tar.gz
That should belong to r216075. Pointy hat on me.
Diffstat (limited to 'usr.sbin/arp')
-rw-r--r--usr.sbin/arp/arp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 32bfd9a..26674de 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -319,9 +319,9 @@ set(int argc, char **argv)
doing_proxy = flags = proxy_only = expire_time = 0;
while (argc-- > 0) {
if (strncmp(argv[0], "temp", 4) == 0) {
- struct timeval tv;
- gettimeofday(&tv, 0);
- expire_time = tv.tv_sec + 20 * 60;
+ struct timespec tp;
+ clock_gettime(CLOCK_MONOTONIC, &tp);
+ expire_time = tp.tv_sec + 20 * 60;
} else if (strncmp(argv[0], "pub", 3) == 0) {
flags |= RTF_ANNOUNCE;
doing_proxy = 1;
OpenPOWER on IntegriCloud