summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-10-25 00:20:41 -0400
committerNick Mathewson <nickm@torproject.org>2012-11-14 23:16:22 -0500
commit9016d9e8294a35295851d12b62de4ac9a5549709 (patch)
tree028df65c0b01db32661f0389726d033130bfade9 /src/or/connection_edge.h
parentc3faa0ebd55f7de80db1a3aa5e64a79c72708722 (diff)
downloadtor-9016d9e8294a35295851d12b62de4ac9a5549709.tar.gz
tor-9016d9e8294a35295851d12b62de4ac9a5549709.zip
Add an IPv6Exit configuration option
Don't advertise an IPv6 exit policy, or accept IPv6 exit requests, if IPv6Exit is not true.
Diffstat (limited to 'src/or/connection_edge.h')
-rw-r--r--src/or/connection_edge.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/connection_edge.h b/src/or/connection_edge.h
index f3d10383f2..39f492de9c 100644
--- a/src/or/connection_edge.h
+++ b/src/or/connection_edge.h
@@ -92,6 +92,11 @@ int connection_edge_update_circuit_isolation(const entry_connection_t *conn,
void circuit_clear_isolation(origin_circuit_t *circ);
#ifdef CONNECTION_EDGE_PRIVATE
+
+#define BEGIN_FLAG_IPV6_OK (1u<<0)
+#define BEGIN_FLAG_IPV4_NOT_OK (1u<<1)
+#define BEGIN_FLAG_IPV6_PREFERRED (1u<<2)
+
/*DOCDOC*/
typedef struct begin_cell_t {
char *address;