Changeset 528
- Timestamp:
- 11/14/09 22:58:47 (3 years ago)
- Location:
- branches/garlicat
- Files:
-
- 4 edited
-
configure (modified) (10 diffs)
-
src/ocat.c (modified) (2 diffs)
-
src/ocat.h (modified) (2 diffs)
-
src/ocatsetup.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/garlicat/configure
r527 r528 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r52 7.3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r528. 4 4 # 5 5 # Report bugs to <rahra@cypherpunk.at>. … … 597 597 PACKAGE_NAME='onioncat' 598 598 PACKAGE_TARNAME='onioncat' 599 PACKAGE_VERSION='0.2.0.r52 7'600 PACKAGE_STRING='onioncat 0.2.0.r52 7'599 PACKAGE_VERSION='0.2.0.r528' 600 PACKAGE_STRING='onioncat 0.2.0.r528' 601 601 PACKAGE_BUGREPORT='rahra@cypherpunk.at' 602 602 … … 1260 1260 # This message is too long to be a string in the A/UX 3.1 sh. 1261 1261 cat <<_ACEOF 1262 \`configure' configures onioncat 0.2.0.r52 7to adapt to many kinds of systems.1262 \`configure' configures onioncat 0.2.0.r528 to adapt to many kinds of systems. 1263 1263 1264 1264 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1330 1330 if test -n "$ac_init_help"; then 1331 1331 case $ac_init_help in 1332 short | recursive ) echo "Configuration of onioncat 0.2.0.r52 7:";;1332 short | recursive ) echo "Configuration of onioncat 0.2.0.r528:";; 1333 1333 esac 1334 1334 cat <<\_ACEOF … … 1422 1422 if $ac_init_version; then 1423 1423 cat <<\_ACEOF 1424 onioncat configure 0.2.0.r52 71424 onioncat configure 0.2.0.r528 1425 1425 generated by GNU Autoconf 2.62 1426 1426 … … 1436 1436 running configure, to aid debugging if configure makes a mistake. 1437 1437 1438 It was created by onioncat $as_me 0.2.0.r52 7, which was1438 It was created by onioncat $as_me 0.2.0.r528, which was 1439 1439 generated by GNU Autoconf 2.62. Invocation command line was 1440 1440 … … 2085 2085 # Define the identity of the package. 2086 2086 PACKAGE='onioncat' 2087 VERSION='0.2.0.r52 7'2087 VERSION='0.2.0.r528' 2088 2088 2089 2089 … … 2236 2236 2237 2237 cat >>confdefs.h <<\_ACEOF 2238 #define SVN_REVISION "52 7"2238 #define SVN_REVISION "528" 2239 2239 _ACEOF 2240 2240 … … 5209 5209 # values after options handling. 5210 5210 ac_log=" 5211 This file was extended by onioncat $as_me 0.2.0.r52 7, which was5211 This file was extended by onioncat $as_me 0.2.0.r528, which was 5212 5212 generated by GNU Autoconf 2.62. Invocation command line was 5213 5213 … … 5262 5262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5263 5263 ac_cs_version="\\ 5264 onioncat config.status 0.2.0.r52 75264 onioncat config.status 0.2.0.r528 5265 5265 configured by $0, generated by GNU Autoconf 2.62, 5266 5266 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" -
branches/garlicat/src/ocat.c
r527 r528 507 507 run_ocat_thread("controller", ocat_controller, NULL); 508 508 509 #ifdef CONNECT_ROOT_PEERS 509 510 // initiate connections to permanent root peers 510 511 log_debug("connecting root peers"); … … 512 513 if (!IN6_ARE_ADDR_EQUAL(&CNF(root_peer[c]), &CNF(ocat_addr))) 513 514 socks_queue(CNF(root_peer[c]), 1); 515 #endif 514 516 515 517 // reading config file -
branches/garlicat/src/ocat.h
r526 r528 102 102 103 103 #define IP6HLEN sizeof(struct ip6_hdr) 104 /*//! TOR prefix: FD87:D87E:EB43::/48105 #define TOR_PREFIX {{{0xfd,0x87,0xd8,0x7e,0xeb,0x43,0,0,0,0,0,0,0,0,0,0}}}106 #define TOR_PREFIX_LEN 48107 #if BYTE_ORDER == LITTLE_ENDIAN108 #define TOR_PREFIX4 {0x0000000a}109 #define TOR_PREFIX4_MASK 0x000000ff110 #else111 #define TOR_PREFIX4 {0x0a000000}112 #define TOR_PREFIX4_MASK 0xff000000113 #endif*/114 104 //! Length of an .onion-URL (without ".onion" and '\0') 115 105 #define ONION_URL_LEN 16 116 /*//! Total length of .onion-URL117 #define ONION_NAME_SIZE (ONION_URL_LEN + 7)118 //! Total length of .onion-URL (equal to ONION_NAME_SIZE)119 #define ONION_NAME_LEN ONION_NAME_SIZE*/120 106 121 107 #define MAXPEERS 1024 122 /*//! Local listening port for incoming connections from TOR.123 #define OCAT_LISTEN_PORT 8060124 //! Local control port for querying status information.125 #define OCAT_CTRL_PORT 8066126 //! Virtual destination port for hidden services127 #define OCAT_DEST_PORT 8060128 //! SOCKS port of TOR proxy129 #define TOR_SOCKS_PORT 9050*/130 108 #ifdef __OpenBSD__ 131 109 #define OCAT_UNAME "_tor" … … 285 263 int use_syslog; 286 264 int daemon; 265 #ifdef CONNECT_ROOT_PEERS 287 266 //! hardcoded permanent peers 288 267 #define ROOT_PEERS 1 289 268 struct in6_addr root_peer[ROOT_PEERS]; 269 #endif 290 270 time_t uptime; 291 271 char *frandn; -
branches/garlicat/src/ocatsetup.c
r526 r528 73 73 1, // daemon 74 74 #endif 75 #ifdef CONNECT_ROOT_PEERS 75 76 { 76 77 /* … … 81 82 0xf6, 0x83, 0x64, 0xac, 0x73, 0xf9, 0x61, 0xac, 0x9a, 0x00}}} // initial permanent peer "62bwjldt7fq2zgqa" (dot.cat) 82 83 }, 84 #endif 83 85 0, 84 86 "/dev/urandom", … … 173 175 void print_setup_struct(FILE *f) 174 176 { 175 char *c, ip[SBUF], nm[SBUF], ip6[SBUF], logf[SBUF], hw[SBUF] , rp[SBUF];177 char *c, ip[SBUF], nm[SBUF], ip6[SBUF], logf[SBUF], hw[SBUF]; 176 178 int i, t; 177 179 struct sockaddr_str sas; … … 262 264 ); 263 265 266 #ifdef CONNECT_ROOT_PEERS 264 267 for (i = 0; i < ROOT_PEERS; i++) 265 if (inet_ntop(AF_INET6, &setup_.root_peer[i], rp, SBUF)) 266 fprintf(f, "root_peer[%d] = %s\n", i, rp); 268 if (inet_ntop(AF_INET6, &setup_.root_peer[i], ip6, SBUF)) 269 fprintf(f, "root_peer[%d] = %s\n", i, ip6); 270 #endif 267 271 268 272 if (inet_ntops((struct sockaddr*) setup_.socks_dst, &sas))
Note: See TracChangeset
for help on using the changeset viewer.
