aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-10 07:37:10 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-10 07:37:10 +0000
commit341d6f2cabcd71656bf9501f2157b7172eec7309 (patch)
treeb93a0e28fa6c19c8cb0b482595a169444ce13244 /src/or/dns.c
parent720281b32e521bcc3fda07f7ce7b9453809ddd83 (diff)
downloadtor-341d6f2cabcd71656bf9501f2157b7172eec7309.tar
tor-341d6f2cabcd71656bf9501f2157b7172eec7309.tar.gz
more cleanup, including fleshing out or.h more
svn:r1839
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 357a319a9..29949966f 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -15,7 +15,7 @@
#include "or.h"
#include "tree.h"
-extern or_options_t options; /**< command-line and config-file options */
+extern or_options_t options; /* command-line and config-file options */
/** Longest hostname we're willing to resolve. */
#define MAX_ADDRESSLEN 256
@@ -52,12 +52,12 @@ struct pending_connection_t {
struct cached_resolve {
SPLAY_ENTRY(cached_resolve) node;
char address[MAX_ADDRESSLEN]; /**< the hostname to be resolved */
- uint32_t addr; /**< in host order. I know I'm horrible for assuming ipv4 */
+ uint32_t addr; /**< IPv4 addr for <b>address</b>. */
char state; /**< 0 is pending; 1 means answer is valid; 2 means resolve failed */
#define CACHE_STATE_PENDING 0
#define CACHE_STATE_VALID 1
#define CACHE_STATE_FAILED 2
- uint32_t expire; /**< remove items from cache after this time */
+ uint32_t expire; /**< Remove items from cache after this time */
struct pending_connection_t *pending_connections;
struct cached_resolve *next;
};