aboutsummaryrefslogtreecommitdiff
path: root/src/or/reasons.c
AgeCommit message (Collapse)Author
2018-07-05Move literally everything out of src/orNick Mathewson
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.
2018-07-01Extract various enums and tiny structs from or.hNick Mathewson
These all have a logical header to go in.
2018-07-01Remove needless includes from or.hNick Mathewson
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-02-07Fix spelling mistakes corresponding to ticket #23650Deepesh Pathak
2017-09-15Run our #else/#endif annotator on our source code.Nick Mathewson
2017-09-05Add support for HTTP Connect tunnelsNick Mathewson
2017-03-15Run the copyright update script.Nick Mathewson
2016-10-17Write a bunch of module documentation.Nick Mathewson
This commit adds or improves the module-level documenation for: buffers.c circuitstats.c command.c connection_edge.c control.c cpuworker.c crypto_curve25519.c crypto_curve25519.h crypto_ed25519.c crypto_format.c dircollate.c dirserv.c dns.c dns_structs.h fp_pair.c geoip.c hibernate.c keypin.c ntmain.c onion.c onion_fast.c onion_ntor.c onion_tap.c periodic.c protover.c protover.h reasons.c rephist.c replaycache.c routerlist.c routerparse.c routerset.c statefile.c status.c tor_main.c workqueue.c In particular, I've tried to explain (for each documented module) what each module does, what's in it, what the big idea is, why it belongs in Tor, and who calls it. In a few cases, I've added TODO notes about refactoring opportunities. I've also renamed an argument, and fixed a few DOCDOC comments.
2016-02-27Update the copyright year.Nick Mathewson
2015-01-15Add string for IP_NOW_REDUNDANT in circuit_end_reason_to_control_stringNick Mathewson
Closes 14207; bugfix on 0.2.6.2-alpha.
2015-01-02Bump copyright dates to 2015, in case someday this matters.Nick Mathewson
2014-10-28Add another year to our copyright dates.Nick Mathewson
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right?
2014-08-03and oh hey, repeat code :)Roger Dingledine
2014-08-03fix typoRoger Dingledine
2014-04-07For missing transport, say "PT_MISSING" not "NO_ROUTE"Nick Mathewson
2014-02-12Fix windows compilation of e0c8031516852Nick Mathewson
There is no WSAEPERM; we were implying that there was.This fixes a bug in e0c8031516852143fb82d8fee91a0f4c576c7418, which hadn't yet appeared in any released Tor.
2014-02-10make EACCES survivable too.Nick Mathewson
2014-02-09Call ENETUNREACH a case of NOROUTE, not a case of INTERNAL.Nick Mathewson
Found by cypherpunks; fix for a part of bug 10777; bugfix on 0.1.0.1-rc.
2013-01-16When we get an END cell before CONNECTED, don't report SOCKS successNick Mathewson
Bug 7902; fix on 0.1.0.1-rc.
2013-01-16Update the copyright date to 201.Nick Mathewson
2012-10-17Use LD_PROTOCOL rather than LD_BUG to warn about bogus reason codes that ↵Andrea Shepard
originated remotely in circuit_end_reason_to_control_string()
2012-10-08Use channel_t rather than or_connection_t for circuitsAndrea Shepard
2012-06-05Merge remote-tracking branch 'public/bug4710'Nick Mathewson
2012-06-04Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson
2012-05-16Report EADDRNOTAVAIL and EADDRINUSE as RESOURCELIMITNick Mathewson
These errors usually mean address exhaustion; reporting them as such lets clients adjust their load to try other exits. Fix for bug 4710; bugfix on 0.1.0.1-rc, which started using END_STREAM_REASON_RESOURCELIMIT.
2012-01-31Use the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32Nick Mathewson
This commit is completely mechanical; I used this perl script to make it: #!/usr/bin/perl -w -i.bak -p if (/^\s*\#/) { s/MS_WINDOWS/_WIN32/g; s/\bWIN32\b/_WIN32/g; }
2011-03-28Send END_STREAM_REASON_NOROUTE: clients that didn't grok it are now obsoleteNick Mathewson
2011-03-25Triage the XXX022 and XXX021 comments remaining in the codeNick Mathewson
Remove some, postpone others, leave some alone. Now the only remaining XXX022s are ones that seem important to fix or investigate.
2011-01-25Add client code to detect attempts to connect to 127.0.0.1 etcNick Mathewson
We detect and reject said attempts if there is no chosen exit node or circuit: connecting to a private addr via a randomly chosen exit node will usually fail (if all exits reject private addresses), is always ill-defined (you're not asking for any particular host or service), and usually an error (you've configured all requests to go over Tor when you really wanted to configure all _remote_ requests to go over Tor). This can also help detect forwarding loop requests. Found as part of bug2279.
2011-01-03Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson
Conflicts: src/common/test.h src/or/test.c
2011-01-03Bump copyright statements to 2011Nick Mathewson
2010-11-23Use S_CASE for ehostunreach, not E_CASE. Partial backport of 69deb22f. Fixes ↵Nick Mathewson
0.2.1 compilation on windows
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-08-19Fix up compilation on windows.Nick Mathewson
2010-08-18Merge commit 'origin/maint-0.2.1'Nick Mathewson
Conflicts: src/or/reasons.c
2010-08-18Backport END_STREAM_REASON_NOROUTE for client use.Sebastian Hahn
(Partial backport of 150ed553dfce9, 161b275028e90, and 4c948ffd6.)
2010-08-15Make Sebastian's misc-reasons branch compile; frob the changes fileNick Mathewson
2010-08-15Merge commit 'sebastian/misc-reason'Nick Mathewson
2010-08-03Introduce END_STREAM_REASON_NOROUTESebastian Hahn
2010-08-03Handle EHOSTUNREACH in errno_to_stream_end_reason()Sebastian Hahn
We used to not recognize it and returned END_STREAM_REASON_MISC. Instead, return END_STREAM_REASON_INTERNAL.
2010-07-27Create reasons.hSebastian Hahn
2010-07-27Create config.hSebastian Hahn
2010-04-12Log bandwidth_weight_rule_t as a string, not an integer.Nick Mathewson
I'm adding this because I can never remember what stuff like 'rule 3' means. That's the one where if somebody goes limp or taps out, the fight is over, right?
2010-02-27Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
Conflicts: src/common/test.h src/or/test.c
2010-02-27Update Tor Project copyright yearsNick Mathewson
2009-08-26A changelog entry and a bit more documentation for socks-clientNick Mathewson
2009-08-25Clean up a couple of style issues in the socks-client branch.Nick Mathewson
2009-06-19Move SOCKS reason-decoding switches into reasons.cNick Mathewson