Commit Graph

7984 Commits

Author SHA1 Message Date
Sebastian Hahn cc060ea220 Create reasons.h 2010-07-27 10:00:45 +02:00
Sebastian Hahn 7bd8dee463 Create policies.h 2010-07-27 10:00:45 +02:00
Sebastian Hahn f6852fe031 Create onion.h 2010-07-27 10:00:45 +02:00
Sebastian Hahn af0c954bc5 Create ntmain.h 2010-07-27 10:00:39 +02:00
Sebastian Hahn 69fcbbaa89 Create networkstatus.h 2010-07-27 07:58:16 +02:00
Sebastian Hahn 86d6bfe448 Create microdesc.h 2010-07-27 07:58:16 +02:00
Sebastian Hahn 0f1548ab18 Create main.h 2010-07-27 07:58:16 +02:00
Sebastian Hahn a86f464f6b Create hibernate.h 2010-07-27 07:58:16 +02:00
Sebastian Hahn dc2f1666ff Create dns.h 2010-07-27 07:58:16 +02:00
Sebastian Hahn 85f7d54418 Create dirvote.h 2010-07-27 07:58:16 +02:00
Sebastian Hahn 7d4c027fb0 Create dirserv.h 2010-07-27 07:58:16 +02:00
Sebastian Hahn bec1c838ca Create directory.h 2010-07-27 07:58:15 +02:00
Sebastian Hahn 98d1314c7e Create cpuworker.h 2010-07-27 07:58:15 +02:00
Sebastian Hahn 0bfa34e1f6 Create control.h 2010-07-27 07:58:15 +02:00
Sebastian Hahn 0d33120c26 Create connection_or.h 2010-07-27 07:58:15 +02:00
Sebastian Hahn 78b6a4650b Create connection_edge.h 2010-07-27 07:58:14 +02:00
Sebastian Hahn 2a74101f7a Create connection.h 2010-07-27 07:58:14 +02:00
Sebastian Hahn c4f8f1316e Create config.h 2010-07-27 07:58:14 +02:00
Sebastian Hahn 3074d5a221 Create command.h 2010-07-27 07:58:14 +02:00
Sebastian Hahn 01c7b60a80 Create circuituse.h 2010-07-27 07:58:14 +02:00
Sebastian Hahn 174a88dd79 Create circuitlist.h 2010-07-27 07:58:13 +02:00
Sebastian Hahn 21155204c6 Create circuitbuild.h 2010-07-27 07:58:13 +02:00
Sebastian Hahn 34dfce0d82 Create buffers.h 2010-07-27 07:56:26 +02:00
Sebastian Hahn 85a1d635d5 Create rendservice.h 2010-07-27 07:56:26 +02:00
Sebastian Hahn 7caa8351b8 Create rendclient.h 2010-07-27 07:56:26 +02:00
Sebastian Hahn 31e81439e1 Create rendcommon.h 2010-07-27 07:56:25 +02:00
Sebastian Hahn cbee969f40 Create routerlist.h 2010-07-27 07:56:25 +02:00
Sebastian Hahn c53b6cc831 Create router.h 2010-07-27 07:56:25 +02:00
Sebastian Hahn ff4030f621 Create geoip.h 2010-07-27 07:56:25 +02:00
Sebastian Hahn e69dc22f4e Split headers for dnsserv.c functions out of or.h
The next series of commits begins addressing the issue that we're
currently including the complete or.h file in all of our source files.
To change that, we're splitting function definitions into new header
files (one header file per source file).
2010-07-27 07:56:25 +02:00
Sebastian Hahn 90d3260b4a whitespace fix 2010-07-27 07:56:25 +02:00
mingw-san 856a36c434 Fix compilation with mingw and OpenSSL 0.9.8m+ 2010-07-26 15:05:11 -04:00
Sebastian Hahn 6cee3d466d Make sure we don't warn for libevent versions like 1.4.14b-stable 2010-07-26 20:39:12 +02:00
Roger Dingledine 1d6656fcb3 mike needs DEFAULT_ROUTE_LEN in other files 2010-07-21 09:30:26 -04:00
Roger Dingledine b178c81de3 whitespace fix 2010-07-21 09:24:14 -04:00
Roger Dingledine 66d5ce266e naked constants are bad 2010-07-20 08:07:44 -04:00
Nick Mathewson d461799f0b Fix getinfo_helper_networkstatus to return 0 on question-not-known
It erroneously returned -1 instead, which made it say "Internal error"
rather than "Unrecognized key."
2010-07-18 17:13:25 +02:00
Nick Mathewson 0b4b51314f Make the controller act more usefully when GETINFO fails
Right now it says "552 internal error" because there's no way for
getinfo_helper_*() countries to specify an error message.  This
patch changes the getinfo_helper_*() interface, and makes most of the
getinfo helpers give useful error messages in response to failures.

This should prevent recurrences of bug 1699, where a missing GeoIPFile
line in the torrc made GETINFO ip-to-county/* fail in a "not obvious
how to fix" way.
2010-07-18 17:05:58 +02:00
Mike Perry 9d5d0f040f Alter how guard flags are chosen.
V3 authorities no longer decide not to vote on Guard+Exit. The bandwidth
weights should take care of this now.

Also, lower the max threshold for WFU to 0.98, to allow more nodes to become
guards.
2010-07-14 20:49:19 -07:00
Roger Dingledine 54cdac97f1 print right controller purpose string for measure-timeout circs 2010-07-14 21:06:49 -04:00
Roger Dingledine c6f5792404 No dirport should mean no hsdir flag (bug 1693) 2010-07-14 13:20:57 -04:00
Roger Dingledine 69dfd67d90 bump to 0.2.2.14-alpha-dev 2010-07-13 15:48:03 -04:00
Roger Dingledine 06a79233c5 bump to 0.2.2.14-alpha 2010-07-12 21:39:59 -04:00
Nick Mathewson 14bc4dcc22 Rename log.h to torlog.h
This should make us conflict less with system files named "log.h".
Yes, we shouldn't have been conflicting with those anyway, but some
people's compilers act very oddly.

The actual change was done with one "git mv", by editing
Makefile.am, and running
   find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }'
2010-07-09 22:05:38 -04:00
Mike Perry a9edb0b4f6 More gracefully handle corrupt state files.
Save a backup if we get odd circuitbuildtimes and other state info.

In the case of circuit build times, we no longer assert, and reset our state.
2010-07-06 12:11:22 -07:00
Mike Perry 7bbdf71a82 Fix unittest failure in bug 1660.
We now record large times as abandoned, to prevent a filter step from
happening and skewing our results.

Also, issue a warn for a rare case that can happen for funky values of Xm or
too many abandoned circuits. Can happen (very rarely) during unit tests, but
should not be possble during live operation, due to network liveness filters
and discard logic.
2010-07-06 12:11:13 -07:00
Karsten Loesing 6bb8747ffb Make directory mirrors report non-zero dirreq-v[23]-shares again. 2010-07-05 10:45:24 +02:00
Nick Mathewson 741ab2a47a Fix bugs with assuming time_t can be implicitly cast to long
Many friendly operating systems have 64-bit times, and it's not nice
to pass them to an %ld format.

It's also extremely not-nice to write a time to the log as an
integer.  Most people think it's 2010 June 29 23:57 UTC+epsilon, not
1277855805+epsilon.
2010-06-29 19:55:10 -04:00
Nick Mathewson 485cab869d Merge remote branch 'public/rand_double2' 2010-06-29 18:57:59 -04:00
Nick Mathewson bea55766af Merge remote branch 'mikeperry/cbt-bugfixes3' 2010-06-29 18:57:50 -04:00