diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-10 02:46:37 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-10 03:46:56 +0200 |
commit | c4c3a558a1f476b3a49f33790c570a9a63b78d04 (patch) | |
tree | 031293468361b9520d7f54d870ec9ab0bc5f1298 /src/peer.h | |
parent | 2e1bceea1388e2bd57b4ef17fb21190a8755d71e (diff) |
persistent keepalive: use unsigned long to avoid multiplication in hotpath
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |