|
|
|
@ -191,10 +191,10 @@ enum SOCKSVersion: uint8_t {
|
|
|
|
|
|
|
|
|
|
/** Values defined for METHOD in RFC1928 */
|
|
|
|
|
enum SOCKS5Method: uint8_t {
|
|
|
|
|
NOAUTH = 0x00, //! No authentication required
|
|
|
|
|
GSSAPI = 0x01, //! GSSAPI
|
|
|
|
|
USER_PASS = 0x02, //! Username/password
|
|
|
|
|
NO_ACCEPTABLE = 0xff, //! No acceptable methods
|
|
|
|
|
NOAUTH = 0x00, //!< No authentication required
|
|
|
|
|
GSSAPI = 0x01, //!< GSSAPI
|
|
|
|
|
USER_PASS = 0x02, //!< Username/password
|
|
|
|
|
NO_ACCEPTABLE = 0xff, //!< No acceptable methods
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** Values defined for CMD in RFC1928 */
|
|
|
|
@ -206,15 +206,15 @@ enum SOCKS5Command: uint8_t {
|
|
|
|
|
|
|
|
|
|
/** Values defined for REP in RFC1928 */
|
|
|
|
|
enum SOCKS5Reply: uint8_t {
|
|
|
|
|
SUCCEEDED = 0x00, //! Succeeded
|
|
|
|
|
GENFAILURE = 0x01, //! General failure
|
|
|
|
|
NOTALLOWED = 0x02, //! Connection not allowed by ruleset
|
|
|
|
|
NETUNREACHABLE = 0x03, //! Network unreachable
|
|
|
|
|
HOSTUNREACHABLE = 0x04, //! Network unreachable
|
|
|
|
|
CONNREFUSED = 0x05, //! Connection refused
|
|
|
|
|
TTLEXPIRED = 0x06, //! TTL expired
|
|
|
|
|
CMDUNSUPPORTED = 0x07, //! Command not supported
|
|
|
|
|
ATYPEUNSUPPORTED = 0x08, //! Address type not supported
|
|
|
|
|
SUCCEEDED = 0x00, //!< Succeeded
|
|
|
|
|
GENFAILURE = 0x01, //!< General failure
|
|
|
|
|
NOTALLOWED = 0x02, //!< Connection not allowed by ruleset
|
|
|
|
|
NETUNREACHABLE = 0x03, //!< Network unreachable
|
|
|
|
|
HOSTUNREACHABLE = 0x04, //!< Network unreachable
|
|
|
|
|
CONNREFUSED = 0x05, //!< Connection refused
|
|
|
|
|
TTLEXPIRED = 0x06, //!< TTL expired
|
|
|
|
|
CMDUNSUPPORTED = 0x07, //!< Command not supported
|
|
|
|
|
ATYPEUNSUPPORTED = 0x08, //!< Address type not supported
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** Values defined for ATYPE in RFC1928 */
|
|
|
|
|