commit jake's patch to include strings with socks5 error numbers

svn:r16657
This commit is contained in:
Roger Dingledine
2008-08-25 21:02:22 +00:00
parent 8a9b6204ca
commit c5fef3c57f
3 changed files with 45 additions and 15 deletions
-13
View File
@@ -718,19 +718,6 @@ typedef enum {
/** Number of bytes in a SOCKS4 header. */
#define SOCKS4_NETWORK_LEN 8
/** 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;
/*
* Relay payload:
* Relay command [1 byte]