summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-11-25 15:12:44 -0500
committerNick Mathewson <nickm@torproject.org>2012-12-17 14:51:31 -0500
commit4ded40b0cadda803c2f1dc17f90f83f64d479392 (patch)
tree17faf3319c3a32037916072dcfa71ba9e248eab8
parent8d080d0b01f61c282ca8843801f2ebc8ae98c764 (diff)
downloadtor-4ded40b0cadda803c2f1dc17f90f83f64d479392.tar.gz
tor-4ded40b0cadda803c2f1dc17f90f83f64d479392.zip
Add missing doxygen for DNS and automap code
-rw-r--r--src/or/or.h41
1 files changed, 37 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 17cd99b29f..3a8e50c801 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1225,7 +1225,7 @@ typedef struct listener_connection_t {
uint8_t isolation_flags;
/**@}*/
- /** For a SOCKS listener, these fields describe whether we should
+ /** For a SOCKS listeners, these fields describe whether we should
* allow IPv4 and IPv6 addresses from our exit nodes, respectively.
*
* @{
@@ -1237,11 +1237,22 @@ typedef struct listener_connection_t {
* addresses? */
unsigned int socks_prefer_ipv6 : 1;
- /*DOCDOC*/
+ /** For a socks listener: should we cache IPv4/IPv6 DNS information that
+ * exit nodes tell us?
+ *
+ * @{ */
unsigned int cache_ipv4_answers : 1;
unsigned int cache_ipv6_answers : 1;
+ /** @} */
+ /** For a socks listeners: if we find an answer in our client-side DNS cache,
+ * should we use it?
+ *
+ * @{ */
unsigned int use_cached_ipv4_answers : 1;
unsigned int use_cached_ipv6_answers : 1;
+ /** @} */
+ /** For socks listeners: When we can automap an address to IPv4 or IPv6,
+ * do we prefer IPv6? */
unsigned int prefer_ipv6_virtaddr : 1;
} listener_connection_t;
@@ -1552,11 +1563,22 @@ typedef struct entry_connection_t {
/** Should we say we prefer IPv6 traffic? */
unsigned int prefer_ipv6_traffic : 1;
- /* DOCDOC*/
+ /** For a socks listener: should we cache IPv4/IPv6 DNS information that
+ * exit nodes tell us?
+ *
+ * @{ */
unsigned int cache_ipv4_answers : 1;
unsigned int cache_ipv6_answers : 1;
+ /** @} */
+ /** For a socks listeners: if we find an answer in our client-side DNS cache,
+ * should we use it?
+ *
+ * @{ */
unsigned int use_cached_ipv4_answers : 1;
unsigned int use_cached_ipv6_answers : 1;
+ /** @} */
+ /** For socks listeners: When we can automap an address to IPv4 or IPv6,
+ * do we prefer IPv6? */
unsigned int prefer_ipv6_virtaddr : 1;
} entry_connection_t;
@@ -3104,11 +3126,22 @@ typedef struct port_cfg_t {
unsigned int ipv6_traffic : 1;
unsigned int prefer_ipv6 : 1;
- /* DOCDOC */
+ /** For a socks listener: should we cache IPv4/IPv6 DNS information that
+ * exit nodes tell us?
+ *
+ * @{ */
unsigned int cache_ipv4_answers : 1;
unsigned int cache_ipv6_answers : 1;
+ /** @} */
+ /** For a socks listeners: if we find an answer in our client-side DNS cache,
+ * should we use it?
+ *
+ * @{ */
unsigned int use_cached_ipv4_answers : 1;
unsigned int use_cached_ipv6_answers : 1;
+ /** @} */
+ /** For socks listeners: When we can automap an address to IPv4 or IPv6,
+ * do we prefer IPv6? */
unsigned int prefer_ipv6_virtaddr : 1;
/* Unix sockets only: */