socks5_status.h 744 B

12345678910111213141516171819202122
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. #ifndef TOR_SOCKS5_STATUS_H
  6. #define TOR_SOCKS5_STATUS_H
  7. /** Specified SOCKS5 status codes. */
  8. typedef enum {
  9. SOCKS5_SUCCEEDED = 0x00,
  10. SOCKS5_GENERAL_ERROR = 0x01,
  11. SOCKS5_NOT_ALLOWED = 0x02,
  12. SOCKS5_NET_UNREACHABLE = 0x03,
  13. SOCKS5_HOST_UNREACHABLE = 0x04,
  14. SOCKS5_CONNECTION_REFUSED = 0x05,
  15. SOCKS5_TTL_EXPIRED = 0x06,
  16. SOCKS5_COMMAND_NOT_SUPPORTED = 0x07,
  17. SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED = 0x08,
  18. } socks5_reply_status_t;
  19. #endif