1 #ifndef OPM_TYPES_H 2 #define OPM_TYPES_H 3 4 /* Configuration Directives */ 5 #define OPM_CONFIG_FD_LIMIT 0 6 #define OPM_CONFIG_BIND_IP 1 7 #define OPM_CONFIG_DNSBL_HOST 2 8 #define OPM_CONFIG_TARGET_STRING 3 9 #define OPM_CONFIG_SCAN_IP 4 10 #define OPM_CONFIG_SCAN_PORT 5 11 #define OPM_CONFIG_MAX_READ 6 12 #define OPM_CONFIG_TIMEOUT 7 13 14 /* Configuration Variable Types */ 15 #define OPM_TYPE_INT 1 16 #define OPM_TYPE_STRING 2 17 #define OPM_TYPE_ADDRESS 3 18 #define OPM_TYPE_STRINGLIST 4 19 20 /* Protocols */ 21 #define OPM_TYPE_HTTP 1 22 #define OPM_TYPE_SOCKS4 2 23 #define OPM_TYPE_SOCKS5 3 24 #define OPM_TYPE_WINGATE 4 25 #define OPM_TYPE_ROUTER 5 26 #define OPM_TYPE_HTTPPOST 6 27 28 /* States */ 29 #define OPM_STATE_UNESTABLISHED 1 30 #define OPM_STATE_ESTABLISHED 2 31 #define OPM_STATE_NEGSENT 3 32 #define OPM_STATE_CLOSED 4 33 34 35 /* Callbacks -- If more callback types are added, 36 CBLEN will need to be changed in libopm.h accordingly */ 37 38 #define OPM_CALLBACK_OPENPROXY 0 /* An open proxy has been found REMOTE/SCANNER */ 39 #define OPM_CALLBACK_NEGFAIL 1 /* Negotiation to a proxy has failed REMOTE/SCANNER */ 40 #define OPM_CALLBACK_END 2 /* A scan has ended REMOTE/SCANNER */ 41 #define OPM_CALLBACK_ERROR 3 /* An unrecoverable error has occured */ 42 #define OPM_CALLBACK_TIMEOUT 4 /* Specific scan (protocol) on host has timed out */ 43 44 #endif /* OPM_TYPES_H */ 45