diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-12 13:12:14 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-12 13:12:14 -0500 |
commit | 81433e74322bb6cab67458ff7ba524ee86ad7e1c (patch) | |
tree | bcf1f4eb6cd71af800f63cdcef311034a78c0e4e /src/or/or.h | |
parent | ccc54d545ec15205d3ed3a92ad4c783adbdc97d1 (diff) | |
parent | 032560fc750811ba361143d99cb61ab4abb26b36 (diff) | |
download | tor-81433e74322bb6cab67458ff7ba524ee86ad7e1c.tar.gz tor-81433e74322bb6cab67458ff7ba524ee86ad7e1c.zip |
Merge remote-tracking branch 'rl1987/bug13644'
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 524f99daab..5ebe7bfac3 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -5003,14 +5003,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_WAS_NOT_NEW = -2, + /* Router descriptor was rejected because it is already known. */ + ROUTER_IS_ALREADY_KNOWN = -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; |