aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-09-24 07:17:34 +0100
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-09-24 07:17:34 +0100
commitaea64bba5acdb34dbfb0858ab194e3f0f85b74e1 (patch)
tree2ba2dffb905d55b2b02753d4ebe637a3b3e11788
parentAdd max queue length of 1024 packets (diff)
downloadwireguard-openbsd-aea64bba5acdb34dbfb0858ab194e3f0f85b74e1.tar.xz
wireguard-openbsd-aea64bba5acdb34dbfb0858ab194e3f0f85b74e1.zip
I accidentally deleted these lines
They used to be here, and then I made the keepalive return above, and accidentally deleted these lines. This caused the broken flag to not be unset, so it would retry a handshake every 15 seconds.
-rw-r--r--src/if_wg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index 1dfc368..df3cef5 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -868,6 +868,8 @@ wg_decrypt(struct mbuf *m)
counters_pkt(sc->sc_if.if_counters, ifc_ipackets, ifc_ibytes,
m->m_pkthdr.len);
wg_timer_keepalive_flag(&p->p_timers);
+ wg_timer_persistent_keepalive_tick(&p->p_timers);
+ wg_timer_broken_unflag(&p->p_timers);
m->m_pkthdr.ph_ifidx = sc->sc_if.if_index;
m->m_pkthdr.ph_rtableid = sc->sc_if.if_rdomain;