summaryrefslogtreecommitdiffstatshomepage
path: root/src/peer.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-07-10 02:46:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-07-10 03:46:56 +0200
commit1b5c30a6b55372539c2b935745e07ffb2f43cc99 (patch)
tree8698a664444b483c9ab4e90ece8e0162e403ce39 /src/peer.h
parentpersistent keepalive: use authenticated keepalives (diff)
downloadwireguard-monolithic-historical-1b5c30a6b55372539c2b935745e07ffb2f43cc99.tar.xz
wireguard-monolithic-historical-1b5c30a6b55372539c2b935745e07ffb2f43cc99.zip
persistent keepalive: use unsigned long to avoid multiplication in hotpath
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.h b/src/peer.h
index 6d74385..47534a2 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -29,7 +29,7 @@ struct wireguard_peer {
uint64_t rx_bytes, tx_bytes;
struct timer_list timer_retransmit_handshake, timer_send_keepalive, timer_new_handshake, timer_kill_ephemerals, timer_persistent_keepalive;
unsigned int timer_handshake_attempts;
- uint16_t persistent_keepalive_interval;
+ unsigned long persistent_keepalive_interval;
bool timer_need_another_keepalive;
struct timeval walltime_last_handshake;
struct sk_buff_head tx_packet_queue;