aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-11-14 10:48:58 -0500
committerNick Mathewson <nickm@torproject.org>2012-11-14 23:16:41 -0500
commit882b389668067a29bb539d0f5bd5cb2f83b93012 (patch)
tree867e692b6b15922a361633106e48aa46ebd9937d /src/or/connection_edge.h
parent6b36142bcc6f268a5312e197c4c3397065b3414e (diff)
downloadtor-882b389668067a29bb539d0f5bd5cb2f83b93012.tar
tor-882b389668067a29bb539d0f5bd5cb2f83b93012.tar.gz
Actually send back correctly-formed IPv6 CONNECTED cells
We had some old code to send back connected cells for IPv6 addresses, but it was wrong. Fortunately, it was also unreachable.
Diffstat (limited to 'src/or/connection_edge.h')
-rw-r--r--src/or/connection_edge.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_edge.h b/src/or/connection_edge.h
index acfa52dfe..95bc29cba 100644
--- a/src/or/connection_edge.h
+++ b/src/or/connection_edge.h
@@ -109,7 +109,9 @@ typedef struct begin_cell_t {
int begin_cell_parse(const cell_t *cell, begin_cell_t *bcell,
uint8_t *end_reason_out);
-
+int connected_cell_format_payload(uint8_t *payload_out,
+ const tor_addr_t *addr,
+ uint32_t ttl);
#endif
#endif