summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2013-07-19 09:12:51 +0000
committerbluhm <bluhm@openbsd.org>2013-07-19 09:12:51 +0000
commit67a14d93ac5c3f3b6caf40006903244eb55decda (patch)
tree00ecda2c1bcd72c49c3bd4181ca9c2033323c07e /usr.sbin/ndp
parenttls perfect forward secrecy with ecdhe (diff)
downloadwireguard-openbsd-67a14d93ac5c3f3b6caf40006903244eb55decda.tar.xz
wireguard-openbsd-67a14d93ac5c3f3b6caf40006903244eb55decda.zip
ndp used an int expire_time for time calculation. Convert this
into time_t. OK henning@ florian@
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 28aed85098b..4cbbd3fbd66 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ndp.c,v 1.47 2013/03/21 04:43:17 deraadt Exp $ */
+/* $OpenBSD: ndp.c,v 1.48 2013/07/19 09:12:51 bluhm Exp $ */
/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
@@ -335,7 +335,8 @@ getsocket(void)
struct sockaddr_in6 so_mask = {sizeof(so_mask), AF_INET6 };
struct sockaddr_in6 blank_sin = {sizeof(blank_sin), AF_INET6 }, sin_m;
struct sockaddr_dl blank_sdl = {sizeof(blank_sdl), AF_LINK }, sdl_m;
-int expire_time, flags, found_entry;
+time_t expire_time;
+int flags, found_entry;
struct {
struct rt_msghdr m_rtm;
char m_space[512];
@@ -379,7 +380,8 @@ set(int argc, char **argv)
ea = (u_char *)LLADDR(&sdl_m);
if (ndp_ether_aton(eaddr, ea) == 0)
sdl_m.sdl_alen = 6;
- flags = expire_time = 0;
+ expire_time = 0;
+ flags = 0;
while (argc-- > 0) {
if (strncmp(argv[0], "temp", 4) == 0) {
struct timeval time;