瀏覽代碼

minor cleanups

svn:r13190
Roger Dingledine 16 年之前
父節點
當前提交
a1f2817307
共有 3 個文件被更改,包括 15 次插入15 次删除
  1. 1 1
      src/or/connection_edge.c
  2. 1 1
      src/or/connection_or.c
  3. 13 13
      src/or/or.h

+ 1 - 1
src/or/connection_edge.c

@@ -1402,7 +1402,7 @@ connection_ap_handshake_rewrite_and_attach(edge_connection_t *conn,
       }
     } else if (socks->command == SOCKS_COMMAND_RESOLVE_PTR) {
       rep_hist_note_used_resolve(time(NULL)); /* help predict this next time */
-      ; /* nothing */
+      /* no extra processing needed */
     } else {
       tor_fragile_assert();
     }

+ 1 - 1
src/or/connection_or.c

@@ -911,7 +911,7 @@ connection_or_set_state_open(or_connection_t *conn)
 
 /** Pack <b>cell</b> into wire-format, and write it onto <b>conn</b>'s outbuf.
  * For cells that use or affect a circuit, this should only be called by
- * connection_or_flush_from_first_active_circuit()
+ * connection_or_flush_from_first_active_circuit().
  */
 void
 connection_or_write_cell_to_buf(const cell_t *cell, or_connection_t *conn)

+ 13 - 13
src/or/or.h

@@ -2100,7 +2100,7 @@ typedef struct {
   /** Boolean: should we never publish a descriptor? Deprecated. */
   int NoPublish;
   /** To what authority types do we publish our descriptor? Choices are
-   * "v1", "v2", "bridge", or "". */
+   * "v1", "v2", "v3", "bridge", or "". */
   smartlist_t *PublishServerDescriptor;
   /** An authority type, derived from PublishServerDescriptor. */
   authority_type_t _PublishServerDescriptor;
@@ -2108,7 +2108,7 @@ typedef struct {
   int PublishHidServDescriptors;
   int FetchServerDescriptors; /**< Do we fetch server descriptors as normal? */
   int FetchHidServDescriptors; /** and hidden service descriptors? */
-  int HidServDirectoryV2; /**< Do we act as hs dir? */
+  int HidServDirectoryV2; /**< Do we participate in the HS DHT? */
 
   int MinUptimeHidServDirectoryV2; /**< As directory authority, accept hidden
                                     * service directories after what time? */
@@ -2176,17 +2176,17 @@ typedef struct {
   char *TestVia; /**< When reachability testing, use these as middle hop. */
   config_line_t *RendConfigLines; /**< List of configuration lines
                                           * for rendezvous services. */
-  char *ContactInfo; /**< Contact info to be published in the directory */
+  char *ContactInfo; /**< Contact info to be published in the directory. */
 
-  char *HttpProxy; /**< hostname[:port] to use as http proxy, if any */
-  uint32_t HttpProxyAddr; /**< Parsed IPv4 addr for http proxy, if any */
-  uint16_t HttpProxyPort; /**< Parsed port for http proxy, if any */
-  char *HttpProxyAuthenticator; /**< username:password string, if any */
+  char *HttpProxy; /**< hostname[:port] to use as http proxy, if any. */
+  uint32_t HttpProxyAddr; /**< Parsed IPv4 addr for http proxy, if any. */
+  uint16_t HttpProxyPort; /**< Parsed port for http proxy, if any. */
+  char *HttpProxyAuthenticator; /**< username:password string, if any. */
 
-  char *HttpsProxy; /**< hostname[:port] to use as https proxy, if any */
-  uint32_t HttpsProxyAddr; /**< Parsed IPv4 addr for https proxy, if any */
-  uint16_t HttpsProxyPort; /**< Parsed port for https proxy, if any */
-  char *HttpsProxyAuthenticator; /**< username:password string, if any */
+  char *HttpsProxy; /**< hostname[:port] to use as https proxy, if any. */
+  uint32_t HttpsProxyAddr; /**< Parsed IPv4 addr for https proxy, if any. */
+  uint16_t HttpsProxyPort; /**< Parsed port for https proxy, if any. */
+  char *HttpsProxyAuthenticator; /**< username:password string, if any. */
 
   /** List of configuration lines for replacement directory authorities.
    * If you just want to replace one class of authority at a time,
@@ -2309,9 +2309,9 @@ typedef struct {
 
   /** The length of time that we think a consensus should be fresh. */
   int V3AuthVotingInterval;
-  /** The length of time we think it will take to distribute votes */
+  /** The length of time we think it will take to distribute votes. */
   int V3AuthVoteDelay;
-  /** The length of time we think it will take to distribute signatures */
+  /** The length of time we think it will take to distribute signatures. */
   int V3AuthDistDelay;
   /** The number of intervals we think a consensus should be valid. */
   int V3AuthNIntervalsValid;