diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-19 23:18:30 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-19 23:18:30 +0000 |
commit | 5ebb949c9f8c66c7c38eda65226677acbe148193 (patch) | |
tree | c73f95fc965df6b2e635d84dbcb89739adcd0bb3 /src/or/or.h | |
parent | 2d4950c8373676b9b5ae0a3c8013e780b5c18e19 (diff) | |
download | tor-5ebb949c9f8c66c7c38eda65226677acbe148193.tar.gz tor-5ebb949c9f8c66c7c38eda65226677acbe148193.zip |
Stop searching routerlist for routers with the same identity as other routers (on router insert): we already have a map for that. (We need to add an index field to routerinfo_t so we can figure out which point in the routerlist to replace.) Also, add a comment to routerlist.c; arma, please advise?
svn:r8432
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index d7fba9c839..09d9778ac1 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -928,6 +928,10 @@ typedef struct { /** How many times has a descriptor been posted and we believed * this router to be unreachable? We only actually warn on the third. */ int num_unreachable_notifications; + + /** What position is this descriptor within routerlist->routers? -1 for + * none. */ + int routerlist_index; } routerinfo_t; /** Contents of a single router entry in a network status object. |