aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@torproject.org>2012-08-31 23:02:19 +0200
committerNick Mathewson <nickm@torproject.org>2012-09-04 12:57:22 -0400
commit8b081231b54f1bb33243078fab510a9a543242a0 (patch)
tree309622fa30f63fea6b75df602cdcdd936f8c8aa5 /src/or/nodelist.h
parent3746215350f4a25c5ec619a8fbe25f3637bb626f (diff)
downloadtor-8b081231b54f1bb33243078fab510a9a543242a0.tar
tor-8b081231b54f1bb33243078fab510a9a543242a0.tar.gz
Make node_ipv6_preferred() take microdescs into account.
Also, make node_get_prim_orport() indicate in its return value whether a valid OR port was copied or not. Maybe we should make it legal to pass ap_out==NULL?
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r--src/or/nodelist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h
index 18bf4ae60..fb65fa548 100644
--- a/src/or/nodelist.h
+++ b/src/or/nodelist.h
@@ -51,7 +51,7 @@ long node_get_declared_uptime(const node_t *node);
time_t node_get_published_on(const node_t *node);
const smartlist_t *node_get_declared_family(const node_t *node);
int node_ipv6_preferred(const node_t *node);
-void node_get_prim_orport(const node_t *node, tor_addr_port_t *ap_out);
+int node_get_prim_orport(const node_t *node, tor_addr_port_t *ap_out);
void node_get_pref_orport(const node_t *node, tor_addr_port_t *ap_out);
void node_get_pref_ipv6_orport(const node_t *node, tor_addr_port_t *ap_out);