aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net/address.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-10 12:56:09 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-10 13:00:02 -0400
commitc2ddb7b231c640a292d261af265dd423cee09179 (patch)
treea9c125f730396d4e7247b7c77628c3b306540658 /src/lib/net/address.h
parent5d8336c182777c36ebff561b420d67fcafb9a9f7 (diff)
downloadtor-c2ddb7b231c640a292d261af265dd423cee09179.tar.gz
tor-c2ddb7b231c640a292d261af265dd423cee09179.zip
Move tor_addr_{,port_}lookup to resolve.c
Diffstat (limited to 'src/lib/net/address.h')
-rw-r--r--src/lib/net/address.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/net/address.h b/src/lib/net/address.h
index 444405ec17..f9e533f4a4 100644
--- a/src/lib/net/address.h
+++ b/src/lib/net/address.h
@@ -204,8 +204,6 @@ tor_addr_eq_ipv4h(const tor_addr_t *a, uint32_t u)
*/
#define TOR_ADDR_BUF_LEN 48
-MOCK_DECL(int, tor_addr_lookup,(const char *name, uint16_t family,
- tor_addr_t *addr_out));
char *tor_addr_to_str_dup(const tor_addr_t *addr) ATTR_MALLOC;
/** Wrapper function of fmt_addr_impl(). It does not decorate IPv6
@@ -263,9 +261,6 @@ int tor_addr_to_PTR_name(char *out, size_t outlen,
int tor_addr_parse_PTR_name(tor_addr_t *result, const char *address,
int family, int accept_regular);
-int tor_addr_port_lookup(const char *s, tor_addr_t *addr_out,
- uint16_t *port_out);
-
/* Does the address * yield an AF_UNSPEC wildcard address (1),
* which expands to corresponding wildcard IPv4 and IPv6 rules, and do we
* allow *4 and *6 for IPv4 and IPv6 wildcards, respectively;