diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-01-20 22:51:40 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-01-20 22:51:40 +0100 |
commit | b5d83e3988d346af26b479b7c1be96185de040aa (patch) | |
tree | ac1de596302c14d46a576f788b3fca31bb11a80c /src/fastd_config.h.in | |
parent | 9f1a5ab5614976e10c4cfaeb055b6c0058b8ba20 (diff) | |
download | fastd-b5d83e3988d346af26b479b7c1be96185de040aa.tar fastd-b5d83e3988d346af26b479b7c1be96185de040aa.zip |
Implement new hash table to keep track of unknown peers handshakes have been sent to
This should significantly reduce the number of handshakes sent after restarting
fastd with many active connections.
Diffstat (limited to 'src/fastd_config.h.in')
-rw-r--r-- | src/fastd_config.h.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fastd_config.h.in b/src/fastd_config.h.in index 03ccc56..6a55930 100644 --- a/src/fastd_config.h.in +++ b/src/fastd_config.h.in @@ -146,6 +146,13 @@ /** The minimum interval between two resolves of the same remote */ #define MIN_RESOLVE_INTERVAL 15000 /* 15 seconds */ +/** The number of hash tables for backoff_unknown() */ +#define UNKNOWN_TABLES 16 + +/** The number of entries per unknown peer table */ +#define UNKNOWN_ENTRIES 64 + + /** How long a session stays valid after a key is negotiated */ #define KEY_VALID 3600000 /* 60 minutes */ |