summaryrefslogtreecommitdiffhomepage
path: root/src/timers.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-01-22 13:38:52 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-01-23 14:29:44 +0100
commit49c240044ca638128a35e4fc55d86c727d3b2b1f (patch)
tree4855020bd05898c165d7aa4300a4c7bb527f432f /src/timers.c
parentf43eabd5616d5dd114b1818867e4c51d3c24dbd3 (diff)
netlink: use __kernel_timespec for handshake time
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/timers.c')
-rw-r--r--src/timers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timers.c b/src/timers.c
index ee16c56..7614c85 100644
--- a/src/timers.c
+++ b/src/timers.c
@@ -192,7 +192,7 @@ void wg_timers_handshake_complete(struct wg_peer *peer)
del_timer(&peer->timer_retransmit_handshake);
peer->timer_handshake_attempts = 0;
peer->sent_lastminute_handshake = false;
- getnstimeofday(&peer->walltime_last_handshake);
+ ktime_get_real_ts64(&peer->walltime_last_handshake);
}
/* Should be called after an ephemeral key is created, which is before sending a