summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-08-25 21:02:22 +0000
committerRoger Dingledine <arma@torproject.org>2008-08-25 21:02:22 +0000
commitc5fef3c57f33b4eff0bbe0279f79cbbe245f5992 (patch)
treed1d4fce7bea9e3144d2ace50f1d3e979c6e48d07 /src/common/compat.h
parent8a9b6204ca91b745d0307b2272fa1108d4057601 (diff)
downloadtor-c5fef3c57f33b4eff0bbe0279f79cbbe245f5992.tar.gz
tor-c5fef3c57f33b4eff0bbe0279f79cbbe245f5992.zip
commit jake's patch to include strings with socks5 error numbers
svn:r16657
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index f21a208ed3..311818cb77 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -391,6 +391,19 @@ const char *tor_socket_strerror(int e);
#define tor_socket_strerror(e) strerror(e)
#endif
+/** Specified SOCKS5 status codes. */
+typedef enum {
+ SOCKS5_SUCCEEDED = 0x00,
+ SOCKS5_GENERAL_ERROR = 0x01,
+ SOCKS5_NOT_ALLOWED = 0x02,
+ SOCKS5_NET_UNREACHABLE = 0x03,
+ SOCKS5_HOST_UNREACHABLE = 0x04,
+ SOCKS5_CONNECTION_REFUSED = 0x05,
+ SOCKS5_TTL_EXPIRED = 0x06,
+ SOCKS5_COMMAND_NOT_SUPPORTED = 0x07,
+ SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED = 0x08,
+} socks5_reply_status_t;
+
/* ===== OS compatibility */
const char *get_uname(void);