summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-04 17:15:21 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-04 17:15:21 -0400
commitb2be6c7f9716ec18c0fb57f10d2bfdf8c1569d3e (patch)
tree2bad512179e41afb1b815ba3673f981f431f2c91 /src/or/connection_edge.c
parent35d08e30d89e5882b708a2cc6cb728f5393b2528 (diff)
downloadtor-b2be6c7f9716ec18c0fb57f10d2bfdf8c1569d3e.tar.gz
tor-b2be6c7f9716ec18c0fb57f10d2bfdf8c1569d3e.zip
Document the new exit_source_out argument to addressmap_rewrite
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index b15e135d11..12f9d6b4c0 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1096,7 +1096,12 @@ addressmap_match_superdomains(char *address)
* expiry time of the result, or to <b>time_max</b> if the result does
* not expire.
*
- * DOCDOC exit_source_out;
+ * If <b>exit_source_out</b> is non-null, we set it as follows. If we the
+ * address starts out as a non-exit address, and we remap it to an .exit
+ * address at any point, then set *<b>exit_source_out</b> to the
+ * address_entry_source_t of the first such rule. Set *<b>exit_source_out</b>
+ * to ADDRMAPSRC_NONE if there is no such rewrite.
+ *
*/
int
addressmap_rewrite(char *address, size_t maxlen, time_t *expires_out,