diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-19 00:55:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-19 00:55:40 +0200 |
commit | 49057fef160e8fb68ae2db71d215531f334a84a5 (patch) | |
tree | fc583222fe666b554781df69a628f5bf34fb65ea /src/timers.c | |
parent | afff97a1ab7663167e6479e9261f737b403822b4 (diff) |
timers: fix up comment
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/timers.c')
-rw-r--r-- | src/timers.c | 4 |
1 files changed, 2 insertions, 2 deletions
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))) |