diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-07 09:49:35 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-02-08 14:38:11 -0500 |
commit | 46bd2aed915f17d520f9ff237262d1510fe25e12 (patch) | |
tree | 8a20c6425bee4fb1216b9fe639c347de29e7eb57 /src/common/address.h | |
parent | a2aaf9509ba578f4e7705b506ee9a0f764d24ff2 (diff) | |
download | tor-46bd2aed915f17d520f9ff237262d1510fe25e12.tar.gz tor-46bd2aed915f17d520f9ff237262d1510fe25e12.zip |
Add an address-set backend using a bloom filter.
We're going to need this to make our anti-DoS code (see 24902) more
robust.
Diffstat (limited to 'src/common/address.h')
-rw-r--r-- | src/common/address.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/address.h b/src/common/address.h index 51db42c315..d57abd0d9e 100644 --- a/src/common/address.h +++ b/src/common/address.h @@ -228,6 +228,8 @@ int tor_addr_compare_masked(const tor_addr_t *addr1, const tor_addr_t *addr2, #define tor_addr_eq(a,b) (0==tor_addr_compare((a),(b),CMP_EXACT)) uint64_t tor_addr_hash(const tor_addr_t *addr); +struct sipkey; +uint64_t tor_addr_keyed_hash(const struct sipkey *key, const tor_addr_t *addr); int tor_addr_is_v4(const tor_addr_t *addr); int tor_addr_is_internal_(const tor_addr_t *ip, int for_listening, const char *filename, int lineno); |