aboutsummaryrefslogtreecommitdiff
path: root/src/common/address.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-30 04:16:49 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-30 04:16:49 +0000
commit52932d6f1a72b9cd3a0bd9571016fa763662d3d6 (patch)
tree29b3db3881b4bfb2bde2f1e79c6d9848088aaf5f /src/common/address.c
parentffe22fab9b81f4b0dea35bc2fb756d4a60cf3ed3 (diff)
downloadtor-52932d6f1a72b9cd3a0bd9571016fa763662d3d6.tar.gz
tor-52932d6f1a72b9cd3a0bd9571016fa763662d3d6.zip
Remove some code that is #ifdefed out, and that we no longer seem to use, if we ever did.
svn:r17827
Diffstat (limited to 'src/common/address.c')
-rw-r--r--src/common/address.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/common/address.c b/src/common/address.c
index 561fa07b74..a47b1228f9 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -560,22 +560,6 @@ tor_addr_parse_mask_ports(const char *s, tor_addr_t *addr_out,
v4map = tor_addr_is_v4(addr_out);
-/*
-#ifdef ALWAYS_V6_MAP
- if (v_family == AF_INET) {
- v_family = AF_INET6;
- IN_ADDR6(addr_out).s6_addr32[3] = IN6_ADDRESS(addr_out).s_addr;
- memset(&IN6_ADDRESS(addr_out), 0, 10);
- IN_ADDR6(addr_out).s6_addr16[5] = 0xffff;
- }
-#else
- if (v_family == AF_INET6 && v4map) {
- v_family = AF_INET;
- IN4_ADDRESS((addr_out).s_addr = IN6_ADDRESS(addr_out).s6_addr32[3];
- }
-#endif
-*/
-
/* Parse mask */
if (maskbits_out) {
int bits = 0;