summaryrefslogtreecommitdiff
path: root/src/or/or.h
AgeCommit message (Collapse)Author
2010-12-15Merge remote branch fix_security_bug_021 into fix_security_bug_022Nick Mathewson
Conflicts: src/common/memarea.c src/or/or.h src/or/rendclient.c
2010-12-15Make payloads into uint8_t.Nick Mathewson
This will avoid some signed/unsigned assignment-related bugs.
2010-11-10Break NoPublish supportSebastian Hahn
2010-11-10Change Natd into NATD in our options.Sebastian Hahn
Breaking this out of the last commit because this might be more controversial.
2010-11-10Synx manpage and source wrt option capitalizationSebastian Hahn
We had a spelling discrepancy between the manpage and the source code for some option. Resolve these in favor of the manpage, because it makes more sense (for example, HTTP should be capitalized).
2010-11-10Comment out the (unused) RunTesting optionSebastian Hahn
The code that makes use of the RunTesting option is #if 0, so setting this option has no effect. Mark the option as obsolete for now, so that Tor doesn't list it as an available option erroneously.
2010-09-30Merge commit 'mikeperry/bug1772' into maint-0.2.2Roger Dingledine
2010-09-29Nominaly lower the minimum timeout value to 1500.Mike Perry
This won't change any behavior, since it will still be rounded back up to 2seconds, but should reduce the chances of some extra warns.
2010-09-29Merge branch 'bug1772' into maint-0.2.2Roger Dingledine
2010-09-29refactor and recomment; no actual changesRoger Dingledine
2010-09-29Merge commit 'mikeperry/bug1739' into maint-0.2.2Roger Dingledine
2010-09-29Merge commit 'mikeperry/bug1740' into maint-0.2.2Roger Dingledine
2010-09-29Do away with the complexity of the network liveness detection.Mike Perry
We really should ignore any timeouts that have *no* network activity for their entire measured lifetime, now that we have the 95th percentile measurement changes. Usually this is up to a minute, even on fast connections.
2010-09-29Send control port events for timeouts.Mike Perry
We now differentiate between timeouts and cutoffs by the REASON string and the PURPOSE string.
2010-09-29Only count timeout data for 3 hop circuits.Mike Perry
Use 4/3 of this timeout value for 4 hop circuits, and use half of it for canabalized circuits.
2010-09-28even more commentRoger Dingledine
2010-09-27Merge branch 'bug1751_enabling' into maint-0.2.2Nick Mathewson
2010-09-27Change bug1751 enabling code based on comments from armaNick Mathewson
2010-09-21Merge branch 'bug1789'Nick Mathewson
2010-09-21First cut of code to enable RefuseUnknownExitsNick Mathewson
The RefuseUnknownExits config option is now a tristate, with "1" meaning "enable it no matter what the consensus says", "0" meaning "disable it no matter what the consensus says", and "auto" meaning "do what the consensus says". If the consensus is silent, we enable RefuseUnknownExits. This patch also changes the dirserv logic so that refuseunknownexits won't make us cache unless we're an exit.
2010-09-14Merge branch 'bug911'Nick Mathewson
2010-09-03Base our expected bw accounting usage on time before soft limitNick Mathewson
Previously, we were also considering the time spent in soft-hibernation. If this was a long time, we would wind up underestimating our bandwidth by a lot, and skewing our wakeup time towards the start of the accounting interval. This patch also makes us store a few more fields in the state file, including the time at which we entered soft hibernation. Fixes bug 1789. Bugfix on 0.0.9pre5.
2010-08-22Fix a compile warning on OpenBSDSebastian Hahn
2010-08-18Move code for launching tests out of router_add_to_routerlist()Nick Mathewson
router_add_to_routerlist() is supposed to be a nice minimal function that only touches the routerlist structures, but it included a call to dirserv_single_reachability_test(). We have a function that gets called _after_ adding descriptors successfully: routerlist_descriptors_added. This patch moves the responsibility for testing there. Because the decision of whether to test or not depends on whether there was an old routerinfo for this router or not, we have to first detect whether we _will_ want to run the tests if the router is added. We make this the job of routers_update_status_from_consensus_networkstatus(). Finally, this patch makes the code notice if a router is going from hibernating to non-hibernating, and if so causes a reachability test to get launched.
2010-08-18Backport END_STREAM_REASON_NOROUTE for client use.Sebastian Hahn
(Partial backport of 150ed553dfce9, 161b275028e90, and 4c948ffd6.)
2010-08-18Merge commit 'karsten/dirbytes2'Nick Mathewson
Conflicts: src/or/rephist.h
2010-08-18Count bytes we spend on answering directory requests.Karsten Loesing
2010-08-15Merge commit 'sebastian/misc-reason'Nick Mathewson
2010-08-05Allow enabling or disabling *Statistics while Tor is running.Karsten Loesing
With this patch we stop scheduling when we should write statistics using a single timestamp in run_scheduled_events(). Instead, we remember when a statistics interval starts separately for each statistic type in geoip.c and rephist.c. Every time run_scheduled_events() tries to write stats to disk, it learns when it should schedule the next such attempt. This patch also enables all statistics to be stopped and restarted at a later time. This patch comes with a few refactorings, some of which were not easily doable without the patch.
2010-08-03Introduce END_STREAM_REASON_NOROUTESebastian Hahn
2010-07-27Move the header for bandwidth_weight_rule_to_string into reasons.hSebastian Hahn
2010-07-27Don't include crypto, compat and util.h in or.hSebastian Hahn
2010-07-27Create routerparse.hSebastian Hahn
2010-07-27Create rephist.hSebastian Hahn
2010-07-27Create rendmid.hSebastian Hahn
2010-07-27Create relay.hSebastian Hahn
2010-07-27Create reasons.hSebastian Hahn
2010-07-27Create policies.hSebastian Hahn
2010-07-27Create onion.hSebastian Hahn
2010-07-27Create ntmain.hSebastian Hahn
2010-07-27Create networkstatus.hSebastian Hahn
2010-07-27Create microdesc.hSebastian Hahn
2010-07-27Create main.hSebastian Hahn
2010-07-27Create hibernate.hSebastian Hahn
2010-07-27Create dns.hSebastian Hahn
2010-07-27Create dirvote.hSebastian Hahn
2010-07-27Create dirserv.hSebastian Hahn
2010-07-27Create directory.hSebastian Hahn
2010-07-27Create cpuworker.hSebastian Hahn
2010-07-27Create control.hSebastian Hahn