diff options
author | Linus Nordberg <linus@nordberg.se> | 2011-11-28 13:47:12 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-30 11:55:46 -0500 |
commit | 3b51b326e4fb71b7ec75c5c8ef5a4869f5c4acc1 (patch) | |
tree | 832e2ef76f4e83d4f30ee61f44f493a1abc2d574 /src/or/router.h | |
parent | 2376a6ade4c5258da5512885eba28e3e0461f2a8 (diff) | |
download | tor-3b51b326e4fb71b7ec75c5c8ef5a4869f5c4acc1.tar.gz tor-3b51b326e4fb71b7ec75c5c8ef5a4869f5c4acc1.zip |
Make router_get_{prim,alt,pref}_addr_port take tor_addr_port_t *.
Rename to *_orport for consistency with node_*.
Diffstat (limited to 'src/or/router.h')
-rw-r--r-- | src/or/router.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/router.h b/src/or/router.h index 4094b665dc..6095d025e4 100644 --- a/src/or/router.h +++ b/src/or/router.h @@ -85,12 +85,12 @@ int router_pick_published_address(const or_options_t *options, uint32_t *addr); int router_rebuild_descriptor(int force); int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, crypto_pk_env_t *ident_key); -void router_get_prim_addr_port(const routerinfo_t *router, tor_addr_t *addr_out, - uint16_t *port_out); -void router_get_alt_addr_port(const routerinfo_t *router, tor_addr_t *addr_out, - uint16_t *port_out); -void router_get_pref_addr_port(const routerinfo_t *router, tor_addr_t *addr_out, - uint16_t *port_out); +void router_get_prim_orport(const routerinfo_t *router, + tor_addr_port_t *addr_port_out); +void router_get_alt_orport(const routerinfo_t *router, + tor_addr_port_t *addr_port_out); +void router_get_pref_orport(const routerinfo_t *router, + tor_addr_port_t *addr_port_out); int router_ipv6_preferred(const routerinfo_t *router); int extrainfo_dump_to_string(char **s, extrainfo_t *extrainfo, crypto_pk_env_t *ident_key); |