summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-01-22 07:51:06 +0000
committerNick Mathewson <nickm@torproject.org>2007-01-22 07:51:06 +0000
commit84790d059fc08bc086104a8ee0486690c0d0adba (patch)
tree751dbcb16afc5c291f735c05fc5a70a496cfba51 /src/or/routerparse.c
parentd634e5b9af38541fed4b684a9ed1ba8ed35e4326 (diff)
downloadtor-84790d059fc08bc086104a8ee0486690c0d0adba.tar.gz
tor-84790d059fc08bc086104a8ee0486690c0d0adba.zip
r9715@catbus: nickm | 2007-01-22 02:51:04 -0500
Document a few undocumented functions and arguments. svn:r9385
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 64c6152db8..3e70e1aaf8 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -632,8 +632,13 @@ check_directory_signature(const char *digest,
* descriptors, parses them and stores the result in <b>dest</b>. All routers
* are marked running and valid. Advances *s to a point immediately
* following the last router entry. Ignore any trailing router entries that
- * are not complete. Returns 0 on success and -1 on failure.
- * DOCDOC saved_location
+ * are not complete.
+ *
+ * If <b>saved_location</b> isn't SAVED_IN_CACHE, make a local copy of each
+ * descriptor in the signed_descriptor_body field of each routerinfo_t. If it
+ * isn't SAVED_NOWHERE, remember the offset of each descriptor.
+ *
+ * Returns 0 on success and -1 on failure.
*/
int
router_parse_list_from_string(const char **s, smartlist_t *dest,
@@ -719,8 +724,9 @@ dump_distinct_digest_count(int severity)
/** Helper function: reads a single router entry from *<b>s</b> ...
* *<b>end</b>. Mallocs a new router and returns it if all goes well, else
- * returns NULL.
- * DOCDOC cache_copy
+ * returns NULL. If <b>cache_copy</b> is true, duplicate the contents of
+ * s through end into the signed_descriptor_body of the resulting
+ * routerinfo_t.
*/
routerinfo_t *
router_parse_entry_from_string(const char *s, const char *end,