[or-cvs] Update routerinfo_t.is_running when generating network stat...

Nick Mathewson nickm at seul.org
Mon Aug 29 18:42:38 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv10765/src/or

Modified Files:
	dirserv.c 
Log Message:
Update routerinfo_t.is_running when generating network status on authdirserver.

Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- dirserv.c	28 Aug 2005 04:20:37 -0000	1.197
+++ dirserv.c	29 Aug 2005 18:42:36 -0000	1.198
@@ -538,6 +538,8 @@
         is_live = get_options()->AssumeReachable ||
                   now < ri->last_reachable + REACHABLE_TIMEOUT;
       }
+      /* Update router status in routerinfo_t. */
+      ri->is_running = is_live;
     } else {
       is_live = ri->is_running;
     }
@@ -1108,6 +1110,8 @@
                                          ri->identity_digest, CONN_TYPE_OR);
         f_running = (router_is_me(ri) && !we_are_hibernating()) ||
           (conn && conn->state == OR_CONN_STATE_OPEN);
+        /* Update router status in routerinfo_t. */
+        ri->is_running = f_running;
       } else {
         f_running = ri->is_running;
       }



More information about the tor-commits mailing list