diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-18 17:18:14 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-18 17:18:14 +0000 |
commit | b91335117f9faf84001acc65859886e4ddc267a5 (patch) | |
tree | 524fcdc4b53d78f87c2b0f1c0a3c7cf57f1fa6f0 /src/or/circuitlist.c | |
parent | b6f89a647a300c6427cdc6796008275447d7ec93 (diff) | |
download | tor-b91335117f9faf84001acc65859886e4ddc267a5.tar.gz tor-b91335117f9faf84001acc65859886e4ddc267a5.zip |
Document the purpose argument of circuit_find_to_cannibalize
svn:r17689
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 229c84ea5f..4e5d603e1e 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -866,18 +866,16 @@ circuit_get_intro_point(const char *digest) * flags in <b>flags</b>, and if info is defined, does not already use info * as any of its hops; or NULL if no circuit fits this description. * + * The <b>purpose</b> argument (currently ignored) refers to the purpose of + * the circuit we want to create, not the purpose of the circuit we want to + * cannibalize. + * * If !CIRCLAUNCH_NEED_UPTIME, prefer returning non-uptime circuits. */ origin_circuit_t * circuit_find_to_cannibalize(uint8_t purpose, extend_info_t *info, int flags) { - /* XXXX021 arma: The purpose argument is ignored. Can that possibly be - * right? */ - /* XXXX <arma> i don't know of any actual bugs that this causes. since i - * think we only call the function for purposes where we want it to do what - * the function does. somebody should check this though. */ - circuit_t *_circ; origin_circuit_t *best=NULL; int need_uptime = (flags & CIRCLAUNCH_NEED_UPTIME) != 0; |