summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/or/onion.c2
-rw-r--r--src/lib/net/address.c2
-rw-r--r--src/lib/net/address.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/or/onion.c b/src/core/or/onion.c
index d73f981d2c..923f850f2c 100644
--- a/src/core/or/onion.c
+++ b/src/core/or/onion.c
@@ -674,7 +674,7 @@ extend_cell_format(uint8_t *command_out, uint16_t *len_out,
extend2_cell_body_add_ls(cell, ls);
ls->ls_type = LS_IPV6;
ls->ls_len = 18;
- tor_addr_get_ipv6_bytes((char *)ls->un_ipv6_addr,
+ tor_addr_copy_ipv6_bytes((char *)ls->un_ipv6_addr,
&cell_in->orport_ipv6.addr);
ls->un_ipv6_port = cell_in->orport_ipv6.port;
}
diff --git a/src/lib/net/address.c b/src/lib/net/address.c
index 9a90093aef..af0e58fa4f 100644
--- a/src/lib/net/address.c
+++ b/src/lib/net/address.c
@@ -907,7 +907,7 @@ tor_addr_from_in6(tor_addr_t *dest, const struct in6_addr *in6)
* <b>src</b> must be an IPv6 address, if it is not, log a warning, and clear
* <b>dest</b>. */
void
-tor_addr_get_ipv6_bytes(char *dest, const tor_addr_t *src)
+tor_addr_copy_ipv6_bytes(char *dest, const tor_addr_t *src)
{
tor_assert(dest);
tor_assert(src);
diff --git a/src/lib/net/address.h b/src/lib/net/address.h
index 651d6bc714..89b1cae322 100644
--- a/src/lib/net/address.h
+++ b/src/lib/net/address.h
@@ -309,7 +309,7 @@ void tor_addr_from_ipv6_bytes(tor_addr_t *dest, const char *bytes);
#define tor_addr_from_in(dest, in) \
tor_addr_from_ipv4n((dest), (in)->s_addr);
void tor_addr_from_in6(tor_addr_t *dest, const struct in6_addr *in6);
-void tor_addr_get_ipv6_bytes(char *dest, const tor_addr_t *src);
+void tor_addr_copy_ipv6_bytes(char *dest, const tor_addr_t *src);
int tor_addr_is_null(const tor_addr_t *addr);
int tor_addr_is_loopback(const tor_addr_t *addr);