Changeset 526
- Timestamp:
- 11/14/09 21:00:31 (3 years ago)
- Location:
- branches/garlicat
- Files:
-
- 6 edited
-
configure (modified) (10 diffs)
-
src/ocat.c (modified) (4 diffs)
-
src/ocat.h (modified) (1 diff)
-
src/ocat_netdesc.h (modified) (1 diff)
-
src/ocatlibe.c (modified) (2 diffs)
-
src/ocatsetup.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/garlicat/configure
r525 r526 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 5.3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r526. 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 5'600 PACKAGE_STRING='onioncat 0.2.0.r52 5'599 PACKAGE_VERSION='0.2.0.r526' 600 PACKAGE_STRING='onioncat 0.2.0.r526' 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 5to adapt to many kinds of systems.1262 \`configure' configures onioncat 0.2.0.r526 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 5:";;1332 short | recursive ) echo "Configuration of onioncat 0.2.0.r526:";; 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 51424 onioncat configure 0.2.0.r526 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 5, which was1438 It was created by onioncat $as_me 0.2.0.r526, 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 5'2087 VERSION='0.2.0.r526' 2088 2088 2089 2089 … … 2236 2236 2237 2237 cat >>confdefs.h <<\_ACEOF 2238 #define SVN_REVISION "52 5"2238 #define SVN_REVISION "526" 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 5, which was5211 This file was extended by onioncat $as_me 0.2.0.r526, 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 55264 onioncat config.status 0.2.0.r526 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
r525 r526 239 239 int urlconv = 0; 240 240 241 snprintf(def, 100, "127.0.0.1:%d", NDESC(listen_port));242 243 241 init_setup(); 244 242 … … 283 281 284 282 case 'l': 285 add_listener(optarg , def);283 add_listener(optarg); 286 284 break; 287 285 … … 352 350 CNF(net_type) = NTYPE_I2P; 353 351 352 snprintf(def, 100, "127.0.0.1:%d", NDESC(listen_port)); 354 353 post_init_setup(); 355 354 … … 451 450 452 451 if (!CNF(oc_listen)) 453 add_listener(def , def);452 add_listener(def); 454 453 455 454 // start socket receiver thread -
branches/garlicat/src/ocat.h
r525 r526 603 603 int strsockaddr(const char *, struct sockaddr *); 604 604 void add_local_listeners(void); 605 void add_listener(const char * , const char *);605 void add_listener(const char *); 606 606 void delete_listeners(struct sockaddr **, int *, int); 607 607 int fdprintf(int, const char *, va_list); -
branches/garlicat/src/ocat_netdesc.h
r525 r526 86 86 #define I2P_OCAT_CTRL_PORT 8067 87 87 //! Virtual destination port for hidden services 88 #define I2P_OCAT_DEST_PORT 806088 #define I2P_OCAT_DEST_PORT I2P_OCAT_LISTEN_PORT 89 89 //! SOCKS port of TOR proxy 90 90 #define I2P_SOCKS_PORT 9051 -
branches/garlicat/src/ocatlibe.c
r500 r526 138 138 139 139 140 void add_listener(const char *buf, const char *def) 141 { 140 void add_listener(const char *buf) 141 { 142 struct sockaddr_in6 saddr; 143 144 if (strsockaddr(buf, &saddr) == -1) 145 log_msg(LOG_EMERG, "could not convert address string '%s'", buf), exit(1); 146 142 147 CNF(oc_listen_cnt)++; 143 148 log_debug("reallocating sockaddr list to %d elements", CNF(oc_listen_cnt)); … … 147 152 log_msg(LOG_ERR, "could not get memory for listener fds: \"%s\"", strerror(errno)), exit(1); 148 153 149 log_debug("allocating sockaddr mem for \"%s\"", def);154 log_debug("allocating sockaddr mem for \"%s\"", buf); 150 155 if (!(CNF(oc_listen)[CNF(oc_listen_cnt) - 1] = calloc(1, sizeof(struct sockaddr_in6)))) 151 156 log_msg(LOG_ERR, "could not get memory for listener : \"%s\"", strerror(errno)), exit(1); 152 157 153 158 CNF(oc_listen_fd)[CNF(oc_listen_cnt) - 1] = -1; 154 155 if (def) 156 if (strsockaddr(def, CNF(oc_listen)[CNF(oc_listen_cnt) - 1]) == -1) 157 log_msg(LOG_EMERG, "illegal default string '%s'", def), exit(1); 158 159 if (strsockaddr(buf, CNF(oc_listen)[CNF(oc_listen_cnt) - 1]) == -1) 160 log_msg(LOG_EMERG, "could not convert address string '%s'", buf), exit(1); 159 memcpy(CNF(oc_listen)[CNF(oc_listen_cnt) - 1], &saddr, sizeof(saddr)); 161 160 } 162 161 -
branches/garlicat/src/ocatsetup.c
r525 r526 130 130 setup_.uptime = time(NULL); 131 131 132 setup_.socks_dst->sin_family = AF_INET;133 setup_.socks_dst->sin_port = htons(TOR_SOCKS_PORT);134 setup_.socks_dst->sin_addr.s_addr = htonl(INADDR_LOOPBACK);135 #ifdef HAVE_SIN_LEN136 setup_.socks_dst->sin_len = SOCKADDR_SIZE(setup_.socks_dst);137 #endif138 139 132 #ifdef DEBUG 140 133 snprintf(setup_.version, VERSION_STRING_LEN, "%s (c) %s -- compiled %s %s", PACKAGE_STRING, OCAT_AUTHOR, __DATE__, __TIME__); … … 151 144 setup_.ocat_dest_port = NDESC(vdest_port); 152 145 setup_.ocat_ctrl_port = NDESC(ctrl_port); 146 147 setup_.socks_dst->sin_family = AF_INET; 148 setup_.socks_dst->sin_port = htons(NDESC(socks_port)); 149 setup_.socks_dst->sin_addr.s_addr = htonl(INADDR_LOOPBACK); 150 #ifdef HAVE_SIN_LEN 151 setup_.socks_dst->sin_len = SOCKADDR_SIZE(setup_.socks_dst); 152 #endif 153 153 154 154 ctrl_listen_.sin_family = AF_INET;
Note: See TracChangeset
for help on using the changeset viewer.
