소스 검색

r13594@catbus: nickm | 2007-07-02 15:53:35 -0400
dir-spec.txt clarifications suggested by Lee Fisher.


svn:r10725

Nick Mathewson 18 년 전
부모
커밋
b092f7f8d2
1개의 변경된 파일13개의 추가작업 그리고 9개의 파일을 삭제
  1. 13 9
      doc/spec/dir-spec.txt

+ 13 - 9
doc/spec/dir-spec.txt

@@ -324,20 +324,24 @@ $Id$
    descriptor.
    descriptor.
 
 
    In lines that take multiple arguments, extra arguments SHOULD be
    In lines that take multiple arguments, extra arguments SHOULD be
-   accepted and ignored.
+   accepted and ignored.  Many of the nonterminals below are defined in
+   section 2.3.
 
 
      "router" nickname address ORPort SOCKSPort DirPort NL
      "router" nickname address ORPort SOCKSPort DirPort NL
 
 
        [At start, exactly once.]
        [At start, exactly once.]
 
 
-       Indicates the beginning of a router descriptor.  "address" must be an
+       Indicates the beginning of a router descriptor.  "nickname" must be a
-       IPv4 address in dotted-quad format. The last three numbers indicate
+       valid router nickname as specified in 2.3.  "address" must be an IPv4
-       the TCP ports at which this OR exposes functionality. ORPort is a port
+       address in dotted-quad format.  The last three numbers indicate the
-       at which this OR accepts TLS connections for the main OR protocol;
+       TCP ports at which this OR exposes functionality. ORPort is a port at
+       which this OR accepts TLS connections for the main OR protocol;
        SOCKSPort is deprecated and should always be 0; and DirPort is the
        SOCKSPort is deprecated and should always be 0; and DirPort is the
        port at which this OR accepts directory-related HTTP connections.  If
        port at which this OR accepts directory-related HTTP connections.  If
        any port is not supported, the value 0 is given instead of a port
        any port is not supported, the value 0 is given instead of a port
-       number.
+       number.  (At least one of DirPort and ORPort SHOULD be set;
+       authorities MAY reject any descriptor with both DirPort and ORPort of
+       0.)
 
 
     "bandwidth" bandwidth-avg bandwidth-burst bandwidth-observed NL
     "bandwidth" bandwidth-avg bandwidth-burst bandwidth-observed NL
 
 
@@ -471,14 +475,14 @@ $Id$
         [At most once]
         [At most once]
 
 
         Declare whether this version of Tor is using the newer enhanced
         Declare whether this version of Tor is using the newer enhanced
-        dns logic.  Versions of Tor without eventdns SHOULD NOT be used for
+        dns logic.  Versions of Tor with this field set to false SHOULD NOT
-        reverse hostname lookups.
+        be used for reverse hostname lookups.
 
 
         [All versions of Tor before 0.1.2.2-alpha should be assumed to have
         [All versions of Tor before 0.1.2.2-alpha should be assumed to have
          this option set to 0 if it is not present.  All Tor versions at
          this option set to 0 if it is not present.  All Tor versions at
          0.1.2.2-alpha or later should be assumed to have this option set to
          0.1.2.2-alpha or later should be assumed to have this option set to
          1 if it is not present.  Until 0.1.2.1-alpha-dev, this option was
          1 if it is not present.  Until 0.1.2.1-alpha-dev, this option was
-         not generated, even when eventdns was in use.  Versions of Tor
+         not generated, even when the new DNS code was in use.  Versions of Tor
          before 0.1.2.1-alpha-dev did not parse this option, so it should be
          before 0.1.2.1-alpha-dev did not parse this option, so it should be
          marked "opt".  The dnsworker logic has been removed, so this option
          marked "opt".  The dnsworker logic has been removed, so this option
          should not be used by new server code.  However, it can still be
          should not be used by new server code.  However, it can still be