]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Document the new exit_source_out argument to addressmap_rewrite
authorNick Mathewson <nickm@torproject.org>
Mon, 4 Jun 2012 21:15:21 +0000 (17:15 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 4 Jun 2012 21:15:21 +0000 (17:15 -0400)
src/or/connection_edge.c

index b15e135d117dac0dfb83a72c89819936e03f9914..12f9d6b4c0229cb246fd59c6204d0097e0ff31cf 100644 (file)
@@ -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,