aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-08-08 19:26:22 -0700
committerJason A. Donenfeld <Jason@zx2c4.com>2018-08-09 01:22:05 -0700
commit5e526969d722be4daeb672a5809d9ef2f0248fb9 (patch)
treedfb37fa9a6c69ab122f8fb28dcfda5fdd3f1568f /src
parentcurve25519-hacl64: correct u64_gte_mask (diff)
downloadwireguard-monolithic-historical-5e526969d722be4daeb672a5809d9ef2f0248fb9.tar.xz
wireguard-monolithic-historical-5e526969d722be4daeb672a5809d9ef2f0248fb9.zip
timers: include header in right file
Diffstat (limited to '')
-rw-r--r--src/timers.c2
-rw-r--r--src/timers.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/timers.c b/src/timers.c
index 762152a..7db892a 100644
--- a/src/timers.c
+++ b/src/timers.c
@@ -9,8 +9,6 @@
#include "queueing.h"
#include "socket.h"
-#include <linux/ktime.h>
-
/*
* Timer for retransmitting the handshake if we don't hear back after `REKEY_TIMEOUT + jitter` ms
* Timer for sending empty packet if we have received a packet but after have not sent one for `KEEPALIVE_TIMEOUT` ms
diff --git a/src/timers.h b/src/timers.h
index 1c46555..c95bf31 100644
--- a/src/timers.h
+++ b/src/timers.h
@@ -6,6 +6,8 @@
#ifndef _WG_TIMERS_H
#define _WG_TIMERS_H
+#include <linux/ktime.h>
+
struct wireguard_peer;
void timers_init(struct wireguard_peer *peer);