summaryrefslogtreecommitdiffhomepage
path: root/src/receive.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-07-08 20:34:32 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-07-10 03:46:56 +0200
commit2e1bceea1388e2bd57b4ef17fb21190a8755d71e (patch)
tree4ed954d5f2877adbe474e82c7564e6b612f86796 /src/receive.c
parent4a5231e2ba26f8567faffe2fac83fe8cabf52160 (diff)
persistent keepalive: use authenticated keepalives
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/receive.c')
-rw-r--r--src/receive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/receive.c b/src/receive.c
index 2323b97..2994c02 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -152,6 +152,7 @@ static void receive_handshake_packet(struct wireguard_device *wg, void *data, si
rx_stats(peer, len);
timers_any_authenticated_packet_received(peer);
+ timers_any_authenticated_packet_traversal(peer);
update_latest_addr(peer, skb);
peer_put(peer);
}
@@ -259,6 +260,7 @@ packet_processed:
dev_kfree_skb(skb);
continue_processing:
timers_any_authenticated_packet_received(peer);
+ timers_any_authenticated_packet_traversal(peer);
socket_set_peer_addr(peer, addr);
peer_put(peer);
}