aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/peer.h
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-07-21 03:34:46 +0200
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-07-21 03:34:46 +0200
commit9d0d777b2bbe4358e1b64b4d09683371ed0ccca9 (patch)
treec1f4af8acf1a135705abbd2b6bbc22618d17bb3c /src/peer.h
parentreceive: check against proper return value type (diff)
downloadwireguard-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.h b/src/peer.h
index 088a6ee..6136287 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -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;