summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-19 23:54:10 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-19 23:54:10 +0200
commit0bf9268453d3af82bbd1257da547b1dd8f225ba2 (patch)
treec543378f2af2311683c741ec3111e16effd0ef28 /src/fastd.h
parent194e1c878aa383994fef0cbbb3449fdaa599b53a (diff)
downloadfastd-0bf9268453d3af82bbd1257da547b1dd8f225ba2.tar
fastd-0bf9268453d3af82bbd1257da547b1dd8f225ba2.zip
Keep peers in a hash table to allow fast address lookups
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h3
1 files changed, 3 insertions, 0 deletions
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;