[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Rename tor_addr_get_ipv6_bytes to tor_addr_copy_ipv6_bytes
commit f62b051e873aa4be564e9f83745902d4541f79f4
Author: teor <teor@xxxxxxxxxxxxxx>
Date: Thu Apr 30 05:54:39 2020 +1000
Rename tor_addr_get_ipv6_bytes to tor_addr_copy_ipv6_bytes
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
tor_addr_get_ipv6_bytes tor_addr_copy_ipv6_bytes
---
src/core/or/onion.c | 2 +-
src/lib/net/address.c | 2 +-
src/lib/net/address.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/core/or/onion.c b/src/core/or/onion.c
index d73f981d2..923f850f2 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 9a90093ae..af0e58fa4 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 651d6bc71..89b1cae32 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);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits