2012-11-08 04:11:03 +08:00
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
|
|
|
|
2011-09-11 04:32:27 +08:00
|
|
|
#define PROXYCHAINS_CONF_FILE_ENV_VAR "PROXYCHAINS_CONF_FILE"
|
2012-01-24 15:26:37 +08:00
|
|
|
#define PROXYCHAINS_QUIET_MODE_ENV_VAR "PROXYCHAINS_QUIET_MODE"
|
2011-09-11 04:32:27 +08:00
|
|
|
#define PROXYCHAINS_CONF_FILE "proxychains.conf"
|
2011-11-06 21:11:36 +08:00
|
|
|
#define LOG_PREFIX "[proxychains] "
|
2012-11-04 11:57:45 +08:00
|
|
|
#ifndef SYSCONFDIR
|
|
|
|
#define SYSCONFDIR "/etc"
|
|
|
|
#endif
|
2012-07-09 05:32:50 +08:00
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2013-06-23 13:12:25 +08:00
|
|
|
extern const char *proxy_type_strmap[];
|
|
|
|
extern const char *chain_type_strmap[];
|
|
|
|
extern const char *proxy_state_strmap[];
|
|
|
|
|
2012-11-04 11:57:45 +08:00
|
|
|
char *get_config_path(char* default_path, char* pbuf, size_t bufsize);
|
2012-11-08 05:00:03 +08:00
|
|
|
void pc_stringfromipv4(unsigned char *ip_buf_4_bytes, char *outbuf_16_bytes);
|
2012-11-04 11:57:45 +08:00
|
|
|
|
2012-11-08 04:11:03 +08:00
|
|
|
//RcB: DEP "common.c"
|
|
|
|
#endif
|