aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-09-25 23:19:30 +0100
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-09-26 04:13:09 +0100
commit17f5b127ebf167983e81f217dbbc517991c050d6 (patch)
tree14a34e45a56d7cafaaad4ac237150fb515b50b56
parentMove bpf_mtap to synchronous parts of the code (diff)
downloadwireguard-openbsd-17f5b127ebf167983e81f217dbbc517991c050d6.tar.xz
wireguard-openbsd-17f5b127ebf167983e81f217dbbc517991c050d6.zip
Add debug message for keepalive
-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 21cb459..6fdaa81 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;
}