diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-07-21 03:34:46 +0200 |
---|---|---|
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-07-21 03:34:46 +0200 |
commit | 9d0d777b2bbe4358e1b64b4d09683371ed0ccca9 (patch) | |
tree | c1f4af8acf1a135705abbd2b6bbc22618d17bb3c /src/peer.h | |
parent | receive: check against proper return value type (diff) | |
download | wireguard-monolithic-historical-9d0d777b2bbe4358e1b64b4d09683371ed0ccca9.tar.xz wireguard-monolithic-historical-9d0d777b2bbe4358e1b64b4d09683371ed0ccca9.zip |
hashtables: switch to rhashtablejn/rhashtable
NOTE: Due to a limitation in the rhashtable API, the siphash key (or
"seed") is reduced to 32 bits of random, rather than 128 bits that were
used before.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,7 +46,7 @@ struct wireguard_peer { u64 last_sent_handshake; struct work_struct transmit_handshake_work, clear_peer_work; struct cookie latest_cookie; - struct hlist_node pubkey_hash; + struct rhash_head pubkey_hash; u64 rx_bytes, tx_bytes; struct timer_list timer_retransmit_handshake, timer_send_keepalive, timer_new_handshake, timer_zero_key_material, timer_persistent_keepalive; unsigned int timer_handshake_attempts; |