summaryrefslogtreecommitdiffstats
path: root/usr.sbin/slaacctl
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2017-08-18 18:42:20 +0000
committerflorian <florian@openbsd.org>2017-08-18 18:42:20 +0000
commit47bd2ec7aee3c7affaafac08297d216569069c89 (patch)
tree8f6867fb0819e9c3e6de09b58b5ca190aaf504f3 /usr.sbin/slaacctl
parentClear WPA group keys from memory before initiating a key exchange (diff)
downloadwireguard-openbsd-47bd2ec7aee3c7affaafac08297d216569069c89.tar.xz
wireguard-openbsd-47bd2ec7aee3c7affaafac08297d216569069c89.zip
nano second resolution is meaningless
Diffstat (limited to 'usr.sbin/slaacctl')
-rw-r--r--usr.sbin/slaacctl/slaacctl.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.sbin/slaacctl/slaacctl.c b/usr.sbin/slaacctl/slaacctl.c
index 93411908424..5ff230c1228 100644
--- a/usr.sbin/slaacctl/slaacctl.c
+++ b/usr.sbin/slaacctl/slaacctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slaacctl.c,v 1.8 2017/08/18 16:32:06 florian Exp $ */
+/* $OpenBSD: slaacctl.c,v 1.9 2017/08/18 18:42:20 florian Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -218,8 +218,7 @@ show_interface_msg(struct imsg *imsg)
t = localtime(&cei_ra->when.tv_sec);
strftime(whenbuf, sizeof(whenbuf), "%F %T", t);
printf("\tRouter Advertisement from %s\n", hbuf);
- printf("\t\treceived: %s.%09ld; %lld.%09lds ago\n",
- whenbuf, cei_ra->when.tv_nsec, diff.tv_sec, diff.tv_nsec);
+ printf("\t\treceived: %s; %llds ago\n", whenbuf, diff.tv_sec);
printf("\t\tCur Hop Limit: %3u, M: %d, O: %d, Router Lifetime:"
" %5us\n", cei_ra->curhoplimit, cei_ra->managed ? 1: 0,
cei_ra->other ? 1 : 0, cei_ra->router_lifetime);
@@ -285,9 +284,7 @@ show_interface_msg(struct imsg *imsg)
t = localtime(&cei_addr_proposal->when.tv_sec);
strftime(whenbuf, sizeof(whenbuf), "%F %T", t);
- printf("\t\tupdated: %s.%09ld; %lld.%09lds ago\n",
- whenbuf, cei_addr_proposal->when.tv_nsec, diff.tv_sec,
- diff.tv_nsec);
+ printf("\t\tupdated: %s; %llds ago\n", whenbuf, diff.tv_sec);
printf("\t\t%s, %s/%u\n", hbuf, inet_ntop(AF_INET6,
&cei_addr_proposal->prefix, ntopbuf, INET6_ADDRSTRLEN),
cei_addr_proposal->prefix_len);
@@ -315,9 +312,7 @@ show_interface_msg(struct imsg *imsg)
t = localtime(&cei_dfr_proposal->when.tv_sec);
strftime(whenbuf, sizeof(whenbuf), "%F %T", t);
- printf("\t\tupdated: %s.%09ld; %lld.%09lds ago\n",
- whenbuf, cei_dfr_proposal->when.tv_nsec, diff.tv_sec,
- diff.tv_nsec);
+ printf("\t\tupdated: %s; %llds ago\n", whenbuf, diff.tv_sec);
break;
case IMSG_CTL_END: