summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/if_wg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index 21cb45972be..6fdaa81b9ff 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -678,6 +678,8 @@ wg_encrypt(struct mbuf *m)
counters_pkt(p->p_sc->sc_if.if_counters, ifc_opackets,
ifc_obytes, m->m_pkthdr.len);
wg_timer_broken_flag(&p->p_timers);
+ } else {
+ DPRINTF_HS(p->p_sc, "send keepalive", &p->p_hs);
}
wg_timer_keepalive_unflag(&p->p_timers);
@@ -836,6 +838,7 @@ wg_decrypt(struct mbuf *m)
wg_timer_persistent_keepalive_tick(&p->p_timers);
wg_timer_broken_unflag(&p->p_timers);
tag->t_state = WG_PKT_STATE_DEAD;
+ DPRINTF_HS(sc, "receive keepalive", &p->p_hs);
return;
}