Changeset 525 for branches/garlicat/src/ocat.h
- Timestamp:
- 11/13/09 13:11:06 (3 years ago)
- File:
-
- 1 edited
-
branches/garlicat/src/ocat.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/garlicat/src/ocat.h
r523 r525 102 102 103 103 #define IP6HLEN sizeof(struct ip6_hdr) 104 / /! TOR prefix: FD87:D87E:EB43::/48104 /*//! TOR prefix: FD87:D87E:EB43::/48 105 105 #define TOR_PREFIX {{{0xfd,0x87,0xd8,0x7e,0xeb,0x43,0,0,0,0,0,0,0,0,0,0}}} 106 106 #define TOR_PREFIX_LEN 48 … … 111 111 #define TOR_PREFIX4 {0x0a000000} 112 112 #define TOR_PREFIX4_MASK 0xff000000 113 #endif 113 #endif*/ 114 114 //! Length of an .onion-URL (without ".onion" and '\0') 115 115 #define ONION_URL_LEN 16 116 / /! Total length of .onion-URL116 /*//! Total length of .onion-URL 117 117 #define ONION_NAME_SIZE (ONION_URL_LEN + 7) 118 118 //! Total length of .onion-URL (equal to ONION_NAME_SIZE) 119 #define ONION_NAME_LEN ONION_NAME_SIZE 119 #define ONION_NAME_LEN ONION_NAME_SIZE*/ 120 120 121 121 #define MAXPEERS 1024 122 / /! Local listening port for incoming connections from TOR.122 /*//! Local listening port for incoming connections from TOR. 123 123 #define OCAT_LISTEN_PORT 8060 124 124 //! Local control port for querying status information. … … 127 127 #define OCAT_DEST_PORT 8060 128 128 //! SOCKS port of TOR proxy 129 #define TOR_SOCKS_PORT 9050 129 #define TOR_SOCKS_PORT 9050*/ 130 130 #ifdef __OpenBSD__ 131 131 #define OCAT_UNAME "_tor" … … 235 235 #define VERSION_STRING_LEN 256 236 236 237 typedef enum PeerType {PT_TOR, PT_I2P} PeerType_t; 237 238 #define NTYPE_TOR 0 239 #define NTYPE_I2P 1 240 238 241 239 242 struct OcatSetup … … 256 259 //! user name to change uid to 257 260 char *usrname; 258 char onion_url[ ONION_NAME_SIZE];261 char onion_url[SIZE_256]; 259 262 struct in6_addr ocat_addr; 260 263 //! flag to create connection log … … 308 311 //! communication pipe for socks "selected" connector 309 312 int socksfd[2]; 313 int net_type; 310 314 }; 311 315 … … 359 363 unsigned inm; 360 364 unsigned outm; 361 PeerType_t type;362 365 } OcatPeer_t; 363 366 … … 566 569 void print_setup_struct(FILE *); 567 570 void init_setup(void); 571 void post_init_setup(void); 568 572 void lock_setup(void); 569 573 void unlock_setup(void);
Note: See TracChangeset
for help on using the changeset viewer.
