hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/net/wireguard/timers.c
....@@ -46,7 +46,7 @@
4646 if (peer->timer_handshake_attempts > MAX_TIMER_HANDSHAKES) {
4747 pr_debug("%s: Handshake for peer %llu (%pISpfsc) did not complete after %d attempts, giving up\n",
4848 peer->device->dev->name, peer->internal_id,
49
- &peer->endpoint.addr, MAX_TIMER_HANDSHAKES + 2);
49
+ &peer->endpoint.addr, (int)MAX_TIMER_HANDSHAKES + 2);
5050
5151 del_timer(&peer->timer_send_keepalive);
5252 /* We drop all packets without a keypair and don't try again,
....@@ -64,7 +64,7 @@
6464 ++peer->timer_handshake_attempts;
6565 pr_debug("%s: Handshake for peer %llu (%pISpfsc) did not complete after %d seconds, retrying (try %d)\n",
6666 peer->device->dev->name, peer->internal_id,
67
- &peer->endpoint.addr, REKEY_TIMEOUT,
67
+ &peer->endpoint.addr, (int)REKEY_TIMEOUT,
6868 peer->timer_handshake_attempts + 1);
6969
7070 /* We clear the endpoint address src address, in case this is
....@@ -94,7 +94,7 @@
9494
9595 pr_debug("%s: Retrying handshake with peer %llu (%pISpfsc) because we stopped hearing back after %d seconds\n",
9696 peer->device->dev->name, peer->internal_id,
97
- &peer->endpoint.addr, KEEPALIVE_TIMEOUT + REKEY_TIMEOUT);
97
+ &peer->endpoint.addr, (int)(KEEPALIVE_TIMEOUT + REKEY_TIMEOUT));
9898 /* We clear the endpoint address src address, in case this is the cause
9999 * of trouble.
100100 */
....@@ -126,7 +126,7 @@
126126
127127 pr_debug("%s: Zeroing out all keys for peer %llu (%pISpfsc), since we haven't received a new one in %d seconds\n",
128128 peer->device->dev->name, peer->internal_id,
129
- &peer->endpoint.addr, REJECT_AFTER_TIME * 3);
129
+ &peer->endpoint.addr, (int)REJECT_AFTER_TIME * 3);
130130 wg_noise_handshake_clear(&peer->handshake);
131131 wg_noise_keypairs_clear(&peer->keypairs);
132132 wg_peer_put(peer);