diff options
author | Roger Dingledine <arma@torproject.org> | 2006-12-13 00:28:56 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-12-13 00:28:56 +0000 |
commit | 0dbf725927c0b3a7f88b852b272573c91857be9b (patch) | |
tree | bea851e8726f18a8b463f950bfc1694ae6be6aa2 /src/or/buffers.c | |
parent | f5164ba61d8cf062bbc1beb2dfbca0abb3415e93 (diff) | |
download | tor-0dbf725927c0b3a7f88b852b272573c91857be9b.tar.gz tor-0dbf725927c0b3a7f88b852b272573c91857be9b.zip |
Infrastructure to test BEGIN_DIR cells.
New socks command CONNECT_DIR. New config option TunnelDirConns that
builds a circ ending at the directory server and delivers a BEGIN_DIR
cell if it's running 0.1.2.2-alpha or later. We still need to make
one-hop circs when appropriate, while making other conns avoid them.
svn:r9098
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 154bfbbc8b..55120c60a7 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -974,6 +974,7 @@ fetch_from_buf_socks(buf_t *buf, socks_request_t *req, return 0; /* not yet */ req->command = (unsigned char) *(buf->cur+1); if (req->command != SOCKS_COMMAND_CONNECT && + req->command != SOCKS_COMMAND_CONNECT_DIR && req->command != SOCKS_COMMAND_RESOLVE && req->command != SOCKS_COMMAND_RESOLVE_PTR) { /* not a connect or resolve or a resolve_ptr? we don't support it. */ @@ -1065,6 +1066,7 @@ fetch_from_buf_socks(buf_t *buf, socks_request_t *req, req->command = (unsigned char) *(buf->cur+1); if (req->command != SOCKS_COMMAND_CONNECT && + req->command != SOCKS_COMMAND_CONNECT_DIR && req->command != SOCKS_COMMAND_RESOLVE) { /* not a connect or resolve? we don't support it. (No resolve_ptr with * socks4.) */ |