diff options
author | Linus Nordberg <linus@torproject.org> | 2012-08-23 12:23:00 +0200 |
---|---|---|
committer | Linus Nordberg <linus@torproject.org> | 2012-08-23 22:13:12 +0200 |
commit | 3410a46ebc7870c1ded14ef34a8e96f0a48b3994 (patch) | |
tree | 71ce013845d4f55893da3508e904d2c256badb25 /src/or/circuitbuild.h | |
parent | 5b0ed1e344f47a584d529221fb9d39e54715732c (diff) | |
download | tor-3410a46ebc7870c1ded14ef34a8e96f0a48b3994.tar tor-3410a46ebc7870c1ded14ef34a8e96f0a48b3994.tar.gz |
Move ipv6_preferred from routerinfo_t to node_t.
Move extend_info_from_router() from circuitbuild.c to router.c and
make it static.
Add get_configured_bridge_by_orports_digest() and have
get_configured_bridge_by_routerinfo() and
node_is_a_configured_bridge() use it. We now consider all OR ports of
a bridge when looking for it.
Move node_get_*_orport to nodelist.c.
Fix a cut'n'paste error in header of nodelist.h.
Add node_assert_ok().
Add router_get_all_orports(). It's duplicating code from
node_get_all_orports(). Worth fixing at the cost of complicating the
API slightly?
Diffstat (limited to 'src/or/circuitbuild.h')
-rw-r--r-- | src/or/circuitbuild.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h index d4a78b9e1..b3ebf094a 100644 --- a/src/or/circuitbuild.h +++ b/src/or/circuitbuild.h @@ -44,10 +44,7 @@ void onion_append_to_cpath(crypt_path_t **head_ptr, crypt_path_t *new_hop); extend_info_t *extend_info_alloc(const char *nickname, const char *digest, crypto_pk_t *onion_key, const tor_addr_t *addr, uint16_t port); -extend_info_t *extend_info_from_router(const routerinfo_t *r, - int for_direct_connect); -extend_info_t *extend_info_from_node(const node_t *node, - int for_direct_connect); +extend_info_t *extend_info_from_node(const node_t *r, int for_direct_connect); extend_info_t *extend_info_dup(extend_info_t *info); void extend_info_free(extend_info_t *info); const node_t *build_state_get_exit_node(cpath_build_state_t *state); |