summaryrefslogtreecommitdiffstats
path: root/src/plugins/wireguard/wireguard_peer.c
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2021-01-12 17:00:21 +0100
committerBeno�t Ganne <bganne@cisco.com>2021-02-11 08:38:48 +0000
commitd5d253d618d7c381cfc9d1b557b5242e2dd2c2e7 (patch)
tree5d8761f0fdb83dc306717dbce4fb5441d59eb6f6 /src/plugins/wireguard/wireguard_peer.c
parente3845d79bfa819355ac5085d73f3b8f2ffae2042 (diff)
wireguard: testing alternative timer dispatch
Change-Id: I645bb0a31b333a6160c74987dddb3fb50ff154d8 Type: improvement Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Diffstat (limited to 'src/plugins/wireguard/wireguard_peer.c')
-rw-r--r--src/plugins/wireguard/wireguard_peer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/wireguard/wireguard_peer.c b/src/plugins/wireguard/wireguard_peer.c
index c4f06be999d..f47019b110a 100644
--- a/src/plugins/wireguard/wireguard_peer.c
+++ b/src/plugins/wireguard/wireguard_peer.c
@@ -81,6 +81,7 @@ wg_peer_clear (vlib_main_t * vm, wg_peer_t * peer)
for (int i = 0; i < WG_N_TIMERS; i++)
{
peer->timers[i] = ~0;
+ peer->timers_dispatched[i] = 0;
}
peer->last_sent_handshake = vlib_time_now (vm) - (REKEY_TIMEOUT + 1);