summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-11-11 20:37:39 +0200
committerrl1987 <rl1987@sdf.lonestar.org>2014-11-11 20:37:39 +0200
commitf9d73eea9c2a17638ca55fc6fcc3a125c85c2619 (patch)
tree776bd84d1b6c480a4b89dab92a5dfe267bbbf45a /src
parent26e7e519dc72aba1f00b9f0179f58e10fafda3d2 (diff)
downloadtor-f9d73eea9c2a17638ca55fc6fcc3a125c85c2619.tar.gz
tor-f9d73eea9c2a17638ca55fc6fcc3a125c85c2619.zip
Comment possible values of was_router_added_t.
Diffstat (limited to 'src')
-rw-r--r--src/or/or.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index b95bfb15a9..371ca4f47c 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4999,14 +4999,30 @@ typedef enum {
/** Return value for router_add_to_routerlist() and dirserv_add_descriptor() */
typedef enum was_router_added_t {
+ /* Router was added successfully. */
ROUTER_ADDED_SUCCESSFULLY = 1,
+ /* Router descriptor was added with warnings to submitter. */
ROUTER_ADDED_NOTIFY_GENERATOR = 0,
+ /* Extrainfo document was rejected because no corresponding router
+ * descriptor was found OR router descriptor was rejected because
+ * it was incompatible with its extrainfo document. */
ROUTER_BAD_EI = -1,
+ /* Router descriptor was rejected because it is already known. */
ROUTER_WAS_NOT_NEW = -2,
+ /* General purpose router was rejected, because it was not listed
+ * in consensus. */
ROUTER_NOT_IN_CONSENSUS = -3,
+ /* Router was neither in directory consensus nor in any of
+ * networkstatus documents. Caching it to access later.
+ * (Applies to fetched descriptors only.) */
ROUTER_NOT_IN_CONSENSUS_OR_NETWORKSTATUS = -4,
+ /* Router was rejected by directory authority. */
ROUTER_AUTHDIR_REJECTS = -5,
+ /* Bridge descriptor was rejected because such bridge was not one
+ * of the bridges we have listed in our configuration. */
ROUTER_WAS_NOT_WANTED = -6,
+ /* Router descriptor was rejected because it was older than
+ * OLD_ROUTER_DESC_MAX_AGE. */
ROUTER_WAS_TOO_OLD = -7,
} was_router_added_t;