Changeset 528


Ignore:
Timestamp:
11/14/09 22:58:47 (3 years ago)
Author:
eagle
Message:

do not connect root peers

Location:
branches/garlicat
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/garlicat/configure

    r527 r528  
    11#! /bin/sh 
    22# Guess values for system-dependent variables and create Makefiles. 
    3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r527. 
     3# Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r528. 
    44# 
    55# Report bugs to <rahra@cypherpunk.at>. 
     
    597597PACKAGE_NAME='onioncat' 
    598598PACKAGE_TARNAME='onioncat' 
    599 PACKAGE_VERSION='0.2.0.r527' 
    600 PACKAGE_STRING='onioncat 0.2.0.r527' 
     599PACKAGE_VERSION='0.2.0.r528' 
     600PACKAGE_STRING='onioncat 0.2.0.r528' 
    601601PACKAGE_BUGREPORT='rahra@cypherpunk.at' 
    602602 
     
    12601260  # This message is too long to be a string in the A/UX 3.1 sh. 
    12611261  cat <<_ACEOF 
    1262 \`configure' configures onioncat 0.2.0.r527 to adapt to many kinds of systems. 
     1262\`configure' configures onioncat 0.2.0.r528 to adapt to many kinds of systems. 
    12631263 
    12641264Usage: $0 [OPTION]... [VAR=VALUE]... 
     
    13301330if test -n "$ac_init_help"; then 
    13311331  case $ac_init_help in 
    1332      short | recursive ) echo "Configuration of onioncat 0.2.0.r527:";; 
     1332     short | recursive ) echo "Configuration of onioncat 0.2.0.r528:";; 
    13331333   esac 
    13341334  cat <<\_ACEOF 
     
    14221422if $ac_init_version; then 
    14231423  cat <<\_ACEOF 
    1424 onioncat configure 0.2.0.r527 
     1424onioncat configure 0.2.0.r528 
    14251425generated by GNU Autoconf 2.62 
    14261426 
     
    14361436running configure, to aid debugging if configure makes a mistake. 
    14371437 
    1438 It was created by onioncat $as_me 0.2.0.r527, which was 
     1438It was created by onioncat $as_me 0.2.0.r528, which was 
    14391439generated by GNU Autoconf 2.62.  Invocation command line was 
    14401440 
     
    20852085# Define the identity of the package. 
    20862086 PACKAGE='onioncat' 
    2087  VERSION='0.2.0.r527' 
     2087 VERSION='0.2.0.r528' 
    20882088 
    20892089 
     
    22362236 
    22372237cat >>confdefs.h <<\_ACEOF 
    2238 #define SVN_REVISION "527" 
     2238#define SVN_REVISION "528" 
    22392239_ACEOF 
    22402240 
     
    52095209# values after options handling. 
    52105210ac_log=" 
    5211 This file was extended by onioncat $as_me 0.2.0.r527, which was 
     5211This file was extended by onioncat $as_me 0.2.0.r528, which was 
    52125212generated by GNU Autoconf 2.62.  Invocation command line was 
    52135213 
     
    52625262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 
    52635263ac_cs_version="\\ 
    5264 onioncat config.status 0.2.0.r527 
     5264onioncat config.status 0.2.0.r528 
    52655265configured by $0, generated by GNU Autoconf 2.62, 
    52665266  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 
  • branches/garlicat/src/ocat.c

    r527 r528  
    507507      run_ocat_thread("controller", ocat_controller, NULL); 
    508508 
     509#ifdef CONNECT_ROOT_PEERS 
    509510   // initiate connections to permanent root peers 
    510511   log_debug("connecting root peers"); 
     
    512513      if (!IN6_ARE_ADDR_EQUAL(&CNF(root_peer[c]), &CNF(ocat_addr))) 
    513514         socks_queue(CNF(root_peer[c]), 1); 
     515#endif 
    514516 
    515517   // reading config file 
  • branches/garlicat/src/ocat.h

    r526 r528  
    102102 
    103103#define IP6HLEN sizeof(struct ip6_hdr) 
    104 /*//! TOR prefix: FD87:D87E:EB43::/48 
    105 #define TOR_PREFIX {{{0xfd,0x87,0xd8,0x7e,0xeb,0x43,0,0,0,0,0,0,0,0,0,0}}} 
    106 #define TOR_PREFIX_LEN 48 
    107 #if BYTE_ORDER == LITTLE_ENDIAN 
    108 #define TOR_PREFIX4 {0x0000000a} 
    109 #define TOR_PREFIX4_MASK 0x000000ff 
    110 #else 
    111 #define TOR_PREFIX4 {0x0a000000} 
    112 #define TOR_PREFIX4_MASK 0xff000000 
    113 #endif*/ 
    114104//! Length of an .onion-URL (without ".onion" and '\0') 
    115105#define ONION_URL_LEN 16 
    116 /*//! Total length of .onion-URL 
    117 #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*/ 
    120106 
    121107#define MAXPEERS 1024 
    122 /*//! Local listening port for incoming connections from TOR. 
    123 #define OCAT_LISTEN_PORT 8060 
    124 //! Local control port for querying status information. 
    125 #define OCAT_CTRL_PORT 8066 
    126 //! Virtual destination port for hidden services 
    127 #define OCAT_DEST_PORT 8060 
    128 //! SOCKS port of TOR proxy 
    129 #define TOR_SOCKS_PORT 9050*/ 
    130108#ifdef __OpenBSD__ 
    131109#define OCAT_UNAME "_tor" 
     
    285263   int use_syslog; 
    286264   int daemon; 
     265#ifdef CONNECT_ROOT_PEERS 
    287266   //! hardcoded permanent peers 
    288267#define ROOT_PEERS 1 
    289268   struct in6_addr root_peer[ROOT_PEERS]; 
     269#endif 
    290270   time_t uptime; 
    291271   char *frandn; 
  • branches/garlicat/src/ocatsetup.c

    r526 r528  
    7373   1,                                      // daemon 
    7474#endif 
     75#ifdef CONNECT_ROOT_PEERS 
    7576   { 
    7677      /* 
     
    8182           0xf6, 0x83, 0x64, 0xac, 0x73, 0xf9, 0x61, 0xac, 0x9a, 0x00}}}  // initial permanent peer "62bwjldt7fq2zgqa" (dot.cat) 
    8283   }, 
     84#endif 
    8385   0, 
    8486   "/dev/urandom", 
     
    173175void print_setup_struct(FILE *f) 
    174176{ 
    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]; 
    176178   int i, t; 
    177179   struct sockaddr_str sas; 
     
    262264         ); 
    263265 
     266#ifdef CONNECT_ROOT_PEERS 
    264267   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 
    267271 
    268272   if (inet_ntops((struct sockaddr*) setup_.socks_dst, &sas)) 
Note: See TracChangeset for help on using the changeset viewer.