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 | 6ae521fbca467a0d8a755098c42e062e0d0dd170 (patch) | |
tree | 4a094374bd5801ec0499c2645d1c791f400b665a | |
parent | timers: remove slack_time (diff) | |
download | wireguard-monolithic-historical-6ae521fbca467a0d8a755098c42e062e0d0dd170.tar.xz wireguard-monolithic-historical-6ae521fbca467a0d8a755098c42e062e0d0dd170.zip |
timers: fix up comment
-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))) |