summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-26 17:35:08 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-26 17:35:08 +0000
commitdf5e8f65bcc1ed3353c45a80baab126476aa5011 (patch)
tree142809c03246a9f40c8813313f1ade11466dfe05 /src/or/connection.c
parent41aef35963efb37b85ac7ea1d24b3bd1dea936cb (diff)
downloadtor-df5e8f65bcc1ed3353c45a80baab126476aa5011.tar.gz
tor-df5e8f65bcc1ed3353c45a80baab126476aa5011.zip
Add more missing documentation, and correct an error in container.c documentation: Don't introduce two parameters called n when you're calling an algorithm O(n).
svn:r17783
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 3ef0b0854a..89c8318cc6 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -34,9 +34,11 @@ static int connection_process_inbuf(connection_t *conn, int package_partial);
static void client_check_address_changed(int sock);
static void set_constrained_socket_buffers(int sock, int size);
-/* DOCDOC last_interface_ip */
+/** The last IPv4 address that our network interface seemed to have been
+ * binding to, in host order. We use this to detect when our IP changes. */
static uint32_t last_interface_ip = 0;
-/* DOCDOC outgoing_addrs */
+/** A list of uint32_ts for addresses we've used in outgoing connections.
+ * Used to detect IP address changes. */
static smartlist_t *outgoing_addrs = NULL;
/**************************************************************/