From 0bf9268453d3af82bbd1257da547b1dd8f225ba2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 19 Apr 2014 23:54:10 +0200 Subject: Keep peers in a hash table to allow fast address lookups --- src/fastd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index a116baf..8fcd247 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -245,6 +245,9 @@ struct fastd_context { VECTOR(fastd_peer_t*) peers_temp; + uint32_t peer_addr_ht_seed; + VECTOR(fastd_peer_t*) *peer_addr_ht; + fastd_dlist_head_t handshake_queue; struct timespec next_maintenance; -- cgit v1.2.3