summaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-09 11:05:28 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-09 11:05:28 -0400
commit4af88d68b4905beac168adb5f1756d610ff7ed7e (patch)
tree066d0acc48239afe907fba95b7687a3aa6d6dcef /src/or/channel.c
parent619bd43a5e2c33ebb02cbeee2dfdf255984794f8 (diff)
parent8eed82b3d4bc8d15bd4ec7f229717f903dd6d6c7 (diff)
downloadtor-4af88d68b4905beac168adb5f1756d610ff7ed7e.tar.gz
tor-4af88d68b4905beac168adb5f1756d610ff7ed7e.zip
Merge remote-tracking branch 'origin/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 4129839fea..c8c92633b1 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