summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-06-17 22:50:27 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-06-17 22:50:27 +1000
commitf5e730455bb4d2f940a8038b0559ac66516dc0bb (patch)
tree8573c371e58469449d2ee7efb33db93ee01c06a6 /src/wireguard.h
parentstaging11 (diff)
downloadwireguard-openbsd-f5e730455bb4d2f940a8038b0559ac66516dc0bb.tar.xz
wireguard-openbsd-f5e730455bb4d2f940a8038b0559ac66516dc0bb.zip
staging12
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 77727ebf8e6..b820699da84 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -30,7 +30,6 @@
#define WG_REKEY_ATTEMPT_COUNT 20
#define WG_REKEY_TIMEOUT 5
#define WG_KEEPALIVE_TIMEOUT 10
-#define WG_BROKEN_TIMEOUT (WG_REKEY_TIMEOUT + WG_KEEPALIVE_TIMEOUT)
#define WG_REKEY_AFTER_TIME_RECV (WG_REJECT_AFTER_TIME - WG_KEEPALIVE_TIMEOUT - WG_REKEY_TIMEOUT)
enum wg_role {
@@ -166,5 +165,6 @@ int wg_conn_rekey_rx(struct wg_conn *);
void wg_util_key_privtopub(uint8_t [WG_KEY_SIZE], const uint8_t [WG_KEY_SIZE]);
enum wg_pkt_type wg_util_pkt_type(uint8_t *, size_t);
+int wg_timespec_timedout(struct timespec *, time_t);
#endif /* _LIBWG_H_ */