summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/receive.c2
-rw-r--r--src/send.c1
-rw-r--r--src/timers.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/receive.c b/src/receive.c
index 3bf0c59..54e74b0 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -199,7 +199,7 @@ static void receive_data_packet(struct sk_buff *skb, struct wireguard_peer *peer
if (unlikely(used_new_key))
packet_send_queue(peer);
- /* A packet with length 0 is a keep alive packet */
+ /* A packet with length 0 is a keepalive packet */
if (unlikely(!skb->len)) {
net_dbg_ratelimited("Receiving keepalive packet from peer %Lu (%pISpfsc)\n", peer->internal_id, addr);
goto packet_processed;
diff --git a/src/send.c b/src/send.c
index cbff73d..36fe918 100644
--- a/src/send.c
+++ b/src/send.c
@@ -121,6 +121,7 @@ void packet_send_keepalive(struct wireguard_peer *peer)
skb_reserve(skb, DATA_PACKET_HEAD_ROOM);
skb->dev = netdev_pub(peer->device);
skb_queue_tail(&peer->tx_packet_queue, skb);
+ net_dbg_ratelimited("Sending keepalive packet to peer %Lu (%pISpfsc)\n", peer->internal_id, &peer->endpoint_addr);
}
packet_send_queue(peer);
}
diff --git a/src/timers.c b/src/timers.c
index 3587344..d16d7d1 100644
--- a/src/timers.c
+++ b/src/timers.c
@@ -44,7 +44,6 @@ static void expired_send_keepalive(unsigned long ptr)
{
struct wireguard_peer *peer = (struct wireguard_peer *)ptr;
- pr_debug("Sending keep alive packet to peer %Lu (%pISpfsc), since we received data, but haven't sent any for %d seconds\n", peer->internal_id, &peer->endpoint_addr, KEEPALIVE / HZ);
packet_send_keepalive(peer);
if (peer->timer_need_another_keepalive) {
peer->timer_need_another_keepalive = false;
@@ -89,7 +88,6 @@ static void expired_send_persistent_keepalive(unsigned long ptr)
if (unlikely(!peer->persistent_keepalive_interval))
return;
- pr_debug("Sending keep alive packet to peer %Lu (%pISpfsc), since we haven't sent or received authenticated data for %lu seconds\n", peer->internal_id, &peer->endpoint_addr, peer->persistent_keepalive_interval / HZ);
packet_send_keepalive(peer);
}