summaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-09 11:04:54 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-09 11:04:54 -0400
commit8eed82b3d4bc8d15bd4ec7f229717f903dd6d6c7 (patch)
tree0587bfcb5b0a84db5060b5b95f452963b774968e /src/or/channel.c
parentdd22ab519ab9ac7affa3bd775b6021049ebe7dd9 (diff)
parent39a017809b6e7f8f779cfa0b4ebea3c0209bef0c (diff)
downloadtor-8eed82b3d4bc8d15bd4ec7f229717f903dd6d6c7.tar.gz
tor-8eed82b3d4bc8d15bd4ec7f229717f903dd6d6c7.zip
Merge remote-tracking branch 'andrea/bug12160_025' into maint-0.2.5
Diffstat (limited to 'src/or/channel.c')
-rw-r--r--src/or/channel.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index ffd68493d0..b2b670e4fb 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -3760,6 +3760,23 @@ channel_mark_local(channel_t *chan)
}
/**
+ * Mark a channel as remote
+ *
+ * This internal-only function should be called by the lower layer if the
+ * channel is not to a local address but has previously been marked local.
+ * See channel_is_local() above or the description of the is_local bit in
+ * channel.h
+ */
+
+void
+channel_mark_remote(channel_t *chan)
+{
+ tor_assert(chan);
+
+ chan->is_local = 0;
+}
+
+/**
* Test outgoing flag
*
* This function gets the outgoing flag; this is the inverse of the incoming