diff options
author | David Goulet <dgoulet@torproject.org> | 2021-01-29 14:51:38 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-01-29 14:51:38 -0500 |
commit | 705fd37875c4acd61037da6a2680678ae128e4a4 (patch) | |
tree | ad5d4c14bacfda66b55e8ab4cac31c90faac5d21 /src/feature/nodelist/nodelist.h | |
parent | 79cb47cfc2ed83911f78fa24ba4205bf69958105 (diff) | |
parent | 9eba65bd8b688497de139b57ac72e5b8a40bb728 (diff) | |
download | tor-705fd37875c4acd61037da6a2680678ae128e4a4.tar.gz tor-705fd37875c4acd61037da6a2680678ae128e4a4.zip |
Merge branch 'tor-gitlab/mr/284' into ticket2667_043_01
Diffstat (limited to 'src/feature/nodelist/nodelist.h')
-rw-r--r-- | src/feature/nodelist/nodelist.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feature/nodelist/nodelist.h b/src/feature/nodelist/nodelist.h index 87020b81eb..1f111a0b99 100644 --- a/src/feature/nodelist/nodelist.h +++ b/src/feature/nodelist/nodelist.h @@ -35,8 +35,10 @@ node_t *nodelist_add_microdesc(microdesc_t *md); void nodelist_set_consensus(networkstatus_t *ns); void nodelist_ensure_freshness(networkstatus_t *ns); int nodelist_probably_contains_address(const tor_addr_t *addr); -void nodelist_add_addr4_to_address_set(const uint32_t addr); -void nodelist_add_addr6_to_address_set(const tor_addr_t *addr); +bool nodelist_reentry_probably_contains(const tor_addr_t *addr, + uint16_t port); +void nodelist_add_addr_to_address_set(const tor_addr_t *addr, + uint16_t or_port, uint16_t dir_port); void nodelist_remove_microdesc(const char *identity_digest, microdesc_t *md); void nodelist_remove_routerinfo(routerinfo_t *ri); |