diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-08 12:14:42 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-02-08 14:40:05 -0500 |
commit | 6892d3292121d02900ac9968e832353ecacca4ad (patch) | |
tree | 064477221c8931c90345e6f47db02815ccd8904a /src/or/nodelist.h | |
parent | 0640da42696a666382dd569839e98312d720a22a (diff) | |
download | tor-6892d3292121d02900ac9968e832353ecacca4ad.tar.gz tor-6892d3292121d02900ac9968e832353ecacca4ad.zip |
Add an address_set to the nodelist.
This set is rebuilt whenever a consensus arrives. In between
consensuses, it is add-only.
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r-- | src/or/nodelist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h index 71a91e107f..355057f398 100644 --- a/src/or/nodelist.h +++ b/src/or/nodelist.h @@ -22,6 +22,7 @@ const node_t *node_get_by_hex_id(const char *identity_digest); node_t *nodelist_set_routerinfo(routerinfo_t *ri, routerinfo_t **ri_old_out); node_t *nodelist_add_microdesc(microdesc_t *md); void nodelist_set_consensus(networkstatus_t *ns); +int nodelist_probably_contains_address(const tor_addr_t *addr); void nodelist_remove_microdesc(const char *identity_digest, microdesc_t *md); void nodelist_remove_routerinfo(routerinfo_t *ri); |