aboutsummaryrefslogtreecommitdiff
path: root/src/common/address.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-01 21:49:01 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-01 21:49:01 -0400
commitfc9e84062b73535b63bb3cf555604b1acbcc4c61 (patch)
tree8c47eb7b3f82bb6bf00c19481f058372fa68fd84 /src/common/address.c
parentdfc32177d9ec3b8a639d6831ca4bc92c4f273dcb (diff)
parent408bd98e79196933e447cbc68c73ecffebaf5a19 (diff)
downloadtor-fc9e84062b73535b63bb3cf555604b1acbcc4c61.tar.gz
tor-fc9e84062b73535b63bb3cf555604b1acbcc4c61.zip
Merge remote-tracking branch 'public/bug4645'
Conflicts: src/or/dirserv.c
Diffstat (limited to 'src/common/address.c')
-rw-r--r--src/common/address.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/common/address.c b/src/common/address.c
index cee4967077..cc3e31f65f 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -1445,19 +1445,6 @@ get_interface_address6(int severity, sa_family_t family, tor_addr_t *addr)
* XXXX024 IPv6 deprecate some of these.
*/
-/** Return true iff <b>ip</b> (in host order) is an IP reserved to localhost,
- * or reserved for local networks by RFC 1918.
- */
-int
-is_internal_IP(uint32_t ip, int for_listening)
-{
- tor_addr_t myaddr;
- myaddr.family = AF_INET;
- myaddr.addr.in_addr.s_addr = htonl(ip);
-
- return tor_addr_is_internal(&myaddr, for_listening);
-}
-
/** Given an address of the form "ip:port", try to divide it into its
* ip and port portions, setting *<b>address_out</b> to a newly
* allocated string holding the address portion and *<b>port_out</b>