aboutsummaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2010-07-27Create geoip.hSebastian Hahn
2010-07-27Split headers for dnsserv.c functions out of or.hSebastian Hahn
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-21mike needs DEFAULT_ROUTE_LEN in other filesRoger Dingledine
2010-07-21whitespace fixRoger Dingledine
2010-07-20naked constants are badRoger Dingledine
2010-07-18Fix getinfo_helper_networkstatus to return 0 on question-not-knownNick Mathewson
It erroneously returned -1 instead, which made it say "Internal error" rather than "Unrecognized key."
2010-07-18Make the controller act more usefully when GETINFO failsNick Mathewson
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-14Alter how guard flags are chosen.Mike Perry
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-14print right controller purpose string for measure-timeout circsRoger Dingledine
2010-07-14No dirport should mean no hsdir flag (bug 1693)Roger Dingledine
2010-07-09Rename log.h to torlog.hNick Mathewson
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-06More gracefully handle corrupt state files.Mike Perry
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-06Fix unittest failure in bug 1660.Mike Perry
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-05Make directory mirrors report non-zero dirreq-v[23]-shares again.Karsten Loesing
2010-06-29Fix bugs with assuming time_t can be implicitly cast to longNick Mathewson
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-29Merge remote branch 'public/rand_double2'Nick Mathewson
2010-06-29Merge remote branch 'mikeperry/cbt-bugfixes3'Nick Mathewson
2010-06-27Group in torrc is obsolete, so stop checking itRoger Dingledine
2010-06-25Make cbt_generate_sample use crypto_rand_double()Nick Mathewson
Possible workaround for bug 1139, if anybody cares.
2010-06-25Use Libevent 2.0's periodic timers where available.Nick Mathewson
These timers behave better with non-monotonic clocks than our old ones, and also try harder to make once-per-second events get called one second apart, rather than one-plus-epsilon seconds apart. This fixes bug 943 for everybody using Libevent 2.0 or later.
2010-06-22Remove the extra space that is sent in certain STREAM messages from the ↵Kat Magic
controller. (closes #1583)
2010-06-16Mention the purpose field for leaked circuits.Mike Perry
2010-06-15Add CLOSE_MS and CLOSE_RATE keywords to buildtimeout event.Mike Perry
2010-06-15Be more proactive about closing unused circuits.Mike Perry
We need to ensure that we close timeout measurement circuits. While we're at it, we should close really old circuits of certain types that aren't in use, and log really old circuits of other types.
2010-06-15Split the circuit timeout and close codepaths.Mike Perry
We need to record different statistics at point of timeout, vs the point of forcible closing. Also, give some better names to constants and state file variables to indicate they are not dealing with timeouts, but abandoned circuits.
2010-06-15Fix initialization and reset issues with close_ms.Mike Perry
Also clean up some log messages.
2010-06-14Answer question from Roger.Nick Mathewson
2010-06-14a line that's been sitting in my sandbox for monthsRoger Dingledine
2010-06-11Merge commit 'sebastian/hostnamewarn'Nick Mathewson
2010-06-11Merge commit 'origin/maint-0.2.1'Nick Mathewson
2010-06-11Add maatuska as eighth v3 directory authority.Karsten Loesing
2010-06-10Don't crash when reading cached*consensus files on startupSebastian Hahn
Fixes bug 1352
2010-06-09Keep circuits open until the greater of 95th CDF percentile or 60s.Mike Perry
This is done to provide better data to our right-censored Pareto model. We do this by simply marking them with a new purpose.
2010-06-09Make the Xm mode selection a consensus parameter.Mike Perry
2010-06-09Add timeout count state variable.Mike Perry
2010-06-09Remove synthetic timeout code in favor of better Pareto model.Mike Perry
2010-06-09Arma hates (\d+). Remove mine and some others.Mike Perry
2010-06-09Improve log message about large timeouts and fix some typos.Mike Perry
2010-06-07Add option to not warn when getting an IP instead of hostnameSebastian Hahn
2010-06-04Don't cannibalize one-hop circuitsSebastian Hahn
In rare cases, we could cannibalize a one-hop circuit, ending up with a two-hop circuit. This circuit would not be actually used, but we should prevent its creation in the first place. Thanks to outofwords and swissknife for helping to analyse this.
2010-06-03Let bridge users use the non-primary address of a multi-homed bridgeRoger Dingledine
2010-05-24moved wince related includes and defs to compat.h where possible, removed ↵valerino
unused/redundant wince includes
2010-05-24Port Tor to work on Windows CEvalerino
Most of the changes here are switches to use APIs available on Windows CE. The most pervasive change is that Windows CE only provides the wide-character ("FooW") variants of most of the windows function, and doesn't support the older ASCII verions at all. This patch will require use of the wcecompat library to get working versions of the posix-style fd-based file IO functions. [commit message by nickm]
2010-05-20Log the correct address when purging a mismatchd DNS cache addressvalerino
2010-05-20Don't use "try" as an identifiervalerino
C allows try, but some windows CE headers like to redefine 'try' to be a reserved word.
2010-05-17Make rotate_request_period use BEGIN/END versions of FOREACHNick Mathewson
This appeases some versions of MSVC, which don't like it when you have preprocessor commands inside a set of macro arguments.
2010-05-12Fix CBT unit tests.Mike Perry
2010-05-12Clarify 'marking connection as too old' messagesNick Mathewson
Back when we changed the idea of a connection being "too old" for new circuits into the connection being "bad" for new circuits, we didn't actually change the info messages. This led to telling the user that we were labelling connections as "too old" for being worse than connections that were actually older than them. Found by Scott on or-talk.
2010-05-10Fix comments from Sebastian + Nick's code review.Mike Perry
Check for overflow in one place, and be consistent about type usage.
2010-05-10Bug 1296: Add option+logic to disable CBT learning.Mike Perry
There are now four ways that CBT can be disabled: 1. Network-wide, with the cbtdisabled consensus param. 2. Via config, with "LearnCircuitBuildTimeout 0" 3. Via config, with "AuthoritativeDirectory 1" 4. Via a state file write failure.