From 49057fef160e8fb68ae2db71d215531f334a84a5 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 19 May 2018 00:55:40 +0200 Subject: timers: fix up comment Signed-off-by: Jason A. Donenfeld --- src/timers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/timers.c') diff --git a/src/timers.c b/src/timers.c index a9096c8..0e14098 100644 --- a/src/timers.c +++ b/src/timers.c @@ -132,7 +132,7 @@ void timers_data_received(struct wireguard_peer *peer) } } -/* Should be called after any type of authenticated packet is received -- keepalive or data. */ +/* Should be called after any type of authenticated packet is received -- keepalive, data, or handshake. */ void timers_any_authenticated_packet_received(struct wireguard_peer *peer) { if (likely(timers_active(peer))) @@ -165,7 +165,7 @@ void timers_session_derived(struct wireguard_peer *peer) mod_timer(&peer->timer_zero_key_material, jiffies + (REJECT_AFTER_TIME * 3)); } -/* Should be called before a packet with authentication -- data, keepalive, either handshake -- is sent, or after one is received. */ +/* Should be called before a packet with authentication -- keepalive, data, or handshake -- is sent, or after one is received. */ void timers_any_authenticated_packet_traversal(struct wireguard_peer *peer) { if (peer->persistent_keepalive_interval && likely(timers_active(peer))) -- cgit v1.2.3