Browse Source

r11596@Kushana: nickm | 2006-12-15 10:57:12 -0500
Mark some TODO items as done. Also, never include ourself in our family list.


svn:r9131

Nick Mathewson 17 years ago
parent
commit
ab2fc7bd62
3 changed files with 10 additions and 4 deletions
  1. 3 0
      ChangeLog
  2. 4 4
      doc/TODO
  3. 3 0
      src/or/router.c

+ 3 - 0
ChangeLog

@@ -47,6 +47,9 @@ Changes in version 0.1.2.5-xxxx - 200?-??-??
     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
       to resolve an address at a given exit node even when they ask for
       to resolve an address at a given exit node even when they ask for
       it by name.
       it by name.
+    - Routers no longer ever list themselves in their "family" line,
+      even if configured to do so.  This makes it easier to configure
+      family lists efficiently.
 
 
   o Controller features:
   o Controller features:
     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
     - Have GETINFO dir/status/* work on hosts with DirPort disabled.

+ 4 - 4
doc/TODO

@@ -247,7 +247,7 @@ R   - "bandwidth classes", for incoming vs initiated-here conns,
       - What do we do about the fact that people can't read zlib-
       - What do we do about the fact that people can't read zlib-
         compressed files manually?
         compressed files manually?
 
 
-  - Add IPv6 support to eventdns.c
+  o Add IPv6 support to eventdns.c
 
 
   - Refactor DNS resolve implementation
   - Refactor DNS resolve implementation
     - Refactor exit side of resolve: do we need a connection_t?
     - Refactor exit side of resolve: do we need a connection_t?
@@ -284,15 +284,15 @@ Minor items for 0.1.2.x as time permits:
   o Some way for the authorities to set BadExit for some nodes manually.
   o Some way for the authorities to set BadExit for some nodes manually.
   - When we export something from foo.c file for testing purposes only,
   - When we export something from foo.c file for testing purposes only,
     make a foo_test.h file for test.c to include.
     make a foo_test.h file for test.c to include.
-  - "getinfo fingerprint" controller command
-  - "setevent guards" controller command
+  o "getinfo fingerprint" controller command
+  o "setevent guards" controller command
   - The Debian package now uses --verify-config when (re)starting,
   - The Debian package now uses --verify-config when (re)starting,
     to distinguish configuration errors from other errors. Perhaps
     to distinguish configuration errors from other errors. Perhaps
     the RPM and other startup scripts should too?
     the RPM and other startup scripts should too?
   - add a "default.action" file to the tor/vidalia bundle so we can fix the
   - add a "default.action" file to the tor/vidalia bundle so we can fix the
     https thing in the default configuration:
     https thing in the default configuration:
     http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#PrivoxyWeirdSSLPort
     http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#PrivoxyWeirdSSLPort
-  - even if your torrc lists yourself in your myfamily line, don't list it in
+  o even if your torrc lists yourself in your myfamily line, don't list it in
     the descriptor.
     the descriptor.
   - Flesh out options_description array in src/or/config.c
   - Flesh out options_description array in src/or/config.c
   - Don't let 'newnym' be triggered more often than every n seconds.
   - Don't let 'newnym' be triggered more often than every n seconds.

+ 3 - 0
src/or/router.c

@@ -882,6 +882,9 @@ router_rebuild_descriptor(int force)
          }
          }
          smartlist_add(ri->declared_family, name);
          smartlist_add(ri->declared_family, name);
          name = NULL;
          name = NULL;
+       } else if (router_is_me(member)) {
+         /* Don't list ourself in our own family; that's redundant */
+         continue;
        } else {
        } else {
          char *fp = tor_malloc(HEX_DIGEST_LEN+2);
          char *fp = tor_malloc(HEX_DIGEST_LEN+2);
          fp[0] = '$';
          fp[0] = '$';