tor  0.4.0.1-alpha
socks5_status.h
Go to the documentation of this file.
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
11 /* NOTE: it probably isn't necessary to put this header in lib/net, but
12  * we need it in _some_ lower-level layer for now, since it is used by
13  * tools/tor-resolve.c.
14  */
15 
16 #ifndef TOR_SOCKS5_STATUS_H
17 #define TOR_SOCKS5_STATUS_H
18 
20 typedef enum {
21  SOCKS5_SUCCEEDED = 0x00,
22  SOCKS5_GENERAL_ERROR = 0x01,
23  SOCKS5_NOT_ALLOWED = 0x02,
24  SOCKS5_NET_UNREACHABLE = 0x03,
25  SOCKS5_HOST_UNREACHABLE = 0x04,
26  SOCKS5_CONNECTION_REFUSED = 0x05,
27  SOCKS5_TTL_EXPIRED = 0x06,
28  SOCKS5_COMMAND_NOT_SUPPORTED = 0x07,
29  SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED = 0x08,
31 
32 #endif
socks5_reply_status_t
Definition: socks5_status.h:20