12#ifndef SOCKS_REQUEST_ST_H
13#define SOCKS_REQUEST_ST_H
17#define MAX_SOCKS_REPLY_LEN 1024
19#define SOCKS_NO_AUTH 0x00
20#define SOCKS_USER_PASS 0x02
23#define SOCKS_COMMAND_CONNECT 0x01
25#define SOCKS_COMMAND_RESOLVE 0xF0
27#define SOCKS_COMMAND_RESOLVE_PTR 0xF1
30#define SOCKS_COMMAND_IS_CONNECT(c) (((c)==SOCKS_COMMAND_CONNECT) || 0)
31#define SOCKS_COMMAND_IS_RESOLVE(c) ((c)==SOCKS_COMMAND_RESOLVE || \
32 (c)==SOCKS_COMMAND_RESOLVE_PTR)
51 uint8_t
reply[MAX_SOCKS_REPLY_LEN];
Status codes used by the SOCKS5 protocol.
unsigned int has_finished
unsigned int socks_prefer_no_auth
unsigned int socks_use_extended_errors
uint8_t reply[MAX_SOCKS_REPLY_LEN]
socks5_reply_status_t socks_extended_error_code
char address[MAX_SOCKS_ADDR_LEN]