summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-23 01:19:04 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-23 01:19:04 -0400
commitb80a8bba199b9adfb9c893641ba770566fa548e1 (patch)
tree2fba8dea9940d46863834f139ed350f7c0eaeffb /src/or/or.h
parent1ba1bdee4bd8f3c00e603fe9b0fd2f14eeb60466 (diff)
parent1e69c60dccc358a7146c2b5e7825ea729498b41b (diff)
downloadtor-b80a8bba199b9adfb9c893641ba770566fa548e1.tar.gz
tor-b80a8bba199b9adfb9c893641ba770566fa548e1.zip
Merge branch 'feature3049-v2' into maint-0.2.2
Conflicts: src/common/Makefile.am
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index b9d8319ba5..9cac5f3548 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1009,7 +1009,7 @@ typedef struct connection_t {
/* XXXX023 move this field, and all the listener-only fields (just
socket_family, I think), into a new listener_connection_t subtype. */
/** If the connection is a CONN_TYPE_AP_DNS_LISTENER, this field points
- * to the evdns_server_port is uses to listen to and answer connections. */
+ * to the evdns_server_port it uses to listen to and answer connections. */
struct evdns_server_port *dns_server_port;
/** Unique ID for measuring tunneled network status requests. */
@@ -1242,6 +1242,9 @@ typedef struct control_connection_t {
/** True if we have sent a protocolinfo reply on this connection. */
unsigned int have_sent_protocolinfo:1;
+ /** True if we have received a takeownership command on this
+ * connection. */
+ unsigned int is_owning_control_connection:1;
/** Amount of space allocated in incoming_cmd. */
uint32_t incoming_cmd_len;
@@ -2674,6 +2677,11 @@ typedef struct {
int DisablePredictedCircuits; /**< Boolean: does Tor preemptively
* make circuits in the background (0),
* or not (1)? */
+
+ /** Process specifier for a controller that ‘owns’ this Tor
+ * instance. Tor will terminate if its owning controller does. */
+ char *OwningControllerProcess;
+
int ShutdownWaitLength; /**< When we get a SIGINT and we're a server, how
* long do we wait before exiting? */
char *SafeLogging; /**< Contains "relay", "1", "0" (meaning no scrubbing). */