aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net/address.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-16 13:51:35 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-17 11:42:49 -0400
commit44da9206701a2b157474f94ccf64996dce192924 (patch)
treed446eddb716d20c23f46c69ce24225ebd5b769b0 /src/lib/net/address.h
parent4b24b3628926e864220d59b9d1b8c0dd45a1d52b (diff)
downloadtor-44da9206701a2b157474f94ccf64996dce192924.tar.gz
tor-44da9206701a2b157474f94ccf64996dce192924.zip
Add a tor_addr_port_copy() function.
Diffstat (limited to 'src/lib/net/address.h')
-rw-r--r--src/lib/net/address.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/net/address.h b/src/lib/net/address.h
index e19b446e8d..bc8ec7744f 100644
--- a/src/lib/net/address.h
+++ b/src/lib/net/address.h
@@ -394,6 +394,7 @@ get_interface_address_list(int severity, int include_internal)
tor_addr_port_t *tor_addr_port_new(const tor_addr_t *addr, uint16_t port);
int tor_addr_port_eq(const tor_addr_port_t *a,
const tor_addr_port_t *b);
+void tor_addr_port_copy(tor_addr_port_t *dest, const tor_addr_port_t *source);
int string_is_valid_dest(const char *string);
int string_is_valid_nonrfc_hostname(const char *string);