diff options
author | bluhm <bluhm@openbsd.org> | 2013-07-20 18:21:11 +0000 |
---|---|---|
committer | bluhm <bluhm@openbsd.org> | 2013-07-20 18:21:11 +0000 |
commit | a80d0aeb845d0b839d863e764c7d8589f85a8503 (patch) | |
tree | 44bc524db63aca6a141dfc772254d35d3607892d /usr.sbin/rarpd/arptab.c | |
parent | 1. there's no "selectors function" (diff) | |
download | wireguard-openbsd-a80d0aeb845d0b839d863e764c7d8589f85a8503.tar.xz wireguard-openbsd-a80d0aeb845d0b839d863e764c7d8589f85a8503.zip |
arp and rarpd used an int expire_time for time calculation. Convert
this into time_t.
OK benno@
Diffstat (limited to 'usr.sbin/rarpd/arptab.c')
-rw-r--r-- | usr.sbin/rarpd/arptab.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/rarpd/arptab.c b/usr.sbin/rarpd/arptab.c index e846bba1a8d..a6073b00507 100644 --- a/usr.sbin/rarpd/arptab.c +++ b/usr.sbin/rarpd/arptab.c @@ -74,7 +74,8 @@ getsocket(void) struct sockaddr_in so_mask = {8, 0, 0, { 0xffffffff}}; struct sockaddr_inarp blank_sin = {sizeof(blank_sin), AF_INET }, sin_m; struct sockaddr_dl blank_sdl = {sizeof(blank_sdl), AF_LINK }, sdl_m; -int expire_time, flags, export_only, doing_proxy; +time_t expire_time; +int flags, export_only, doing_proxy; struct { struct rt_msghdr m_rtm; @@ -104,7 +105,8 @@ arptab_set(u_char *eaddr, u_int32_t host) sin->sin_addr.s_addr = host; memcpy((u_char *)LLADDR(&sdl_m), (char *)eaddr, 6); sdl_m.sdl_alen = 6; - doing_proxy = flags = export_only = expire_time = 0; + expire_time = 0; + doing_proxy = flags = export_only = 0; gettimeofday(&time, 0); expire_time = time.tv_sec + 20 * 60; |