[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] remove crazy notion that clique_mode() means we are
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
circuitbuild.c routerlist.c
Log Message:
remove crazy notion that clique_mode() means we are
already connected to everybody we could be connected to.
Index: circuitbuild.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuitbuild.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- circuitbuild.c 18 Aug 2004 08:51:04 -0000 1.28
+++ circuitbuild.c 18 Aug 2004 09:07:11 -0000 1.29
@@ -1016,7 +1016,6 @@
static int count_acceptable_routers(smartlist_t *routers) {
int i, j, n;
int num=0;
- connection_t *conn;
routerinfo_t *r, *r2;
n = smartlist_len(routers);
@@ -1032,14 +1031,6 @@
log_fn(LOG_DEBUG,"Nope, the directory says %d is not verified.",i);
goto next_i_loop; /* XXX008 */
}
- if(clique_mode()) {
- conn = connection_get_by_identity_digest(r->identity_digest,
- CONN_TYPE_OR);
- if(!conn || conn->state != OR_CONN_STATE_OPEN) {
- log_fn(LOG_DEBUG,"Nope, %d is not connected.",i);
- goto next_i_loop;
- }
- }
for(j=0;j<i;j++) {
r2 = smartlist_get(routers, j);
if(!crypto_pk_cmp_keys(r->onion_pkey, r2->onion_pkey)) {
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- routerlist.c 18 Aug 2004 07:53:43 -0000 1.128
+++ routerlist.c 18 Aug 2004 09:07:11 -0000 1.129
@@ -202,15 +202,7 @@
router = smartlist_get(routerlist->routers, i);
if(router->is_running &&
(allow_unverified || router->is_verified)) {
- if(!clique_mode()) {
- smartlist_add(sl, router);
- } else {
- connection_t *conn =
- connection_get_by_identity_digest(router->identity_digest,
- CONN_TYPE_OR);
- if(conn && conn->state == OR_CONN_STATE_OPEN)
- smartlist_add(sl, router);
- }
+ smartlist_add(sl, router);
}
}
}