summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-05-21 21:37:58 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-05-21 22:11:25 +1000
commit3c5051c274996cc6fa641dad2428b1205a5d3131 (patch)
treec34f78b66f2091ed4838ff78d6d42cf5f2b4df68 /src/wireguard.h
parentAdd persistent keepalive support to userspace (diff)
downloadwireguard-openbsd-3c5051c274996cc6fa641dad2428b1205a5d3131.tar.xz
wireguard-openbsd-3c5051c274996cc6fa641dad2428b1205a5d3131.zip
Limit initiation retries
The interface will stop attempting to connect to the peer after 90 seconds.
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 0d00a623ef5..6d9c0cbf87c 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -86,6 +86,7 @@ struct wg_peer {
enum wg_role role;
} p_curr_sess, p_prev_sess;
+ u_int8_t p_init_retry_count;
u_int16_t p_persistent_keepalive;
bool p_require_keepalive, p_require_broken;
struct timespec p_lastrecv;