aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
Commit message (Collapse)AuthorAge
* Be even more aggressive about separating local traffic from relayedRoger Dingledine2007-07-29
| | | | | | | traffic when RelayBandwidthRate is set. (Refines proposal 111.) svn:r10974
* make progress towards retrying our bridges when they're allRoger Dingledine2007-07-29
| | | | | | | down and we get a new socks request svn:r10967
* r13920@catbus: nickm | 2007-07-26 16:25:25 -0400Nick Mathewson2007-07-26
| | | | | | | whitespace fixes svn:r10935
* r13858@catbus: nickm | 2007-07-22 18:44:02 -0400Nick Mathewson2007-07-22
| | | | | | | Fix/note some relatively trivial mem usage issues svn:r10905
* handle fetching bridge descriptors from the bridge authority too.Roger Dingledine2007-07-22
| | | | svn:r10898
* when requesting tor/server/authority, ask for tor/server/authority.zRoger Dingledine2007-07-21
| | | | | | | | instead. same functionality, saves a bit of bandwidth. and might even work. svn:r10896
* timeout and retry schedules for fetching bridge descriptorsRoger Dingledine2007-07-18
| | | | svn:r10867
* using fascistfirewall and having your bridge on an unreachableRoger Dingledine2007-07-18
| | | | | | | port silently didn't mix. now they loudly don't mix. svn:r10862
* free bridge list on exit; try harder to free buffer freelists on exit.Roger Dingledine2007-07-17
| | | | svn:r10854
* If there's a never-before-connected-to guard node in our list,Roger Dingledine2007-07-02
| | | | | | | | | | | | never choose any guards past it. This way we don't expand our guard list unless we need to. [Bugfix in 0.1.2.x] I'm not sure if this will solve all our problems, but it is at least something. svn:r10730
* if we already have a bridge in our state file, it won't beRoger Dingledine2007-06-15
| | | | | | | | | in the networkstatuses, so we'll mark it unusable when we load it, and then when we get a new routerinfo for it, we'll still think it's unusable. fix that. svn:r10612
* bugfix on r10609: don't fail asserts when closing circuitsRoger Dingledine2007-06-15
| | | | | | | that were connected to an unkeyed connection. svn:r10611
* now we can specify a bridge without specifying its key,Roger Dingledine2007-06-15
| | | | | | | and we will still connect to it and use it. getting closer! svn:r10609
* Refine r10571: more work on bridge stuff.Roger Dingledine2007-06-15
| | | | | | | | | | | | | - Only listen to responses for "authority" fetches if we're configured to use Bridges. Otherwise it's safe (and maybe smarter) to silently discard them like we used to. - React faster to download networkstatuses after the first bridge descriptor arrives. - Don't do dir fetches before we have any bridges, even when our dirport is open. svn:r10604
* More work towards making bridge users able to connect via bridges:Roger Dingledine2007-06-12
| | | | | | | | | | | | | | | | | | | | | - demand options->Bridges and options->TunnelDirConns if options->UseBridges is set. - after directory fetches, accept descriptors that aren't referenced by our networkstatuses, *if* they're for a configured bridge. - delay directory fetching until we have at least one bridge descriptor. - learn how to build a one-hop circuit when we have neither routerinfo nor routerstatus for our destination. - teach directory connections how to pick a bridge as the destination directory when doing non-anonymous fetches. - tolerate directory commands for which the dir_port is 0. - remember descriptors when the requested_resource was "authority", rather than just ignoring them. - put bridges on our entry_guards list once we have a descriptor for them. When UseBridges is set, only pick entry guards that are bridges. Else vice versa. svn:r10571
* more building blocks towards being able to fetch bridge descriptorsRoger Dingledine2007-06-10
| | | | svn:r10548
* discard the "bridge list" stubs that i hope i never need.Roger Dingledine2007-06-10
| | | | svn:r10547
* avoid leaking memory in a path never followed. pointed outRoger Dingledine2007-06-07
| | | | | | | by robert watson. svn:r10521
* forward-port r10318Roger Dingledine2007-05-24
| | | | svn:r10319
* r12853@catbus: nickm | 2007-05-22 11:36:54 -0400Nick Mathewson2007-05-22
| | | | | | | Make connection_array into a smartlist. svn:r10292
* clean up r10240 so we avoid the exit node itself tooRoger Dingledine2007-05-22
| | | | svn:r10242
* When choosing an entry guard for our circuit, avoid using guardsRoger Dingledine2007-05-22
| | | | | | | | that are in the same family as the chosen exit -- not just guards that are exactly the chosen exit. (Reported by lodger.) svn:r10240
* r12697@catbus: nickm | 2007-05-09 00:15:40 -0400Nick Mathewson2007-05-09
| | | | | | | Change authority_type_t to a set of flags; use it more consistently. svn:r10144
* Interim commit: new config options Bridge and UseBridges.Roger Dingledine2007-05-08
| | | | | | | | | It is becoming increasingly clear to me that bridges should be a special case of entry guards, not a whole separate pile of nearly identical functions. svn:r10141
* record the router purpose at each step of the circuit path.Roger Dingledine2007-05-08
| | | | | | | i have the feeling this will come in handy. svn:r10139
* clean up some function argument namesRoger Dingledine2007-05-08
| | | | svn:r10138
* r12651@Kushana: nickm | 2007-03-24 18:26:42 -0400Nick Mathewson2007-03-26
| | | | | | | Initial version of circuit-based cell queues. Instead of hammering or_conns with piles of cells, queue cells on their corresponding circuits, and append them to the or_conn as needed. This seems to work so far, but needs a bit more work. This will break the memory-use-limitation patch for begin_dir conns: the solution will be a fun but fiddly. svn:r9904
* r12643@0-41-wifi: nickm | 2007-03-23 14:56:35 -0400Nick Mathewson2007-03-24
| | | | | | | Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit. svn:r9899
* put the stopgap on whether we've sent a create cell, notRoger Dingledine2007-03-20
| | | | | | | whether we've attached a stream. svn:r9883
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500Nick Mathewson2007-03-04
| | | | | | | Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.) svn:r9733
* r11970@catbus: nickm | 2007-02-27 19:17:27 -0500Nick Mathewson2007-02-28
| | | | | | | Fix a bug found by Udo van den Heuvel: avoid an assertion failure when a controller sets and clears EntryNodes before the next call to choose_random_entry(). Also make a function static. svn:r9669
* doc pedantRoger Dingledine2007-02-24
| | | | svn:r9634
* r11909@catbus: nickm | 2007-02-24 02:37:40 -0500Nick Mathewson2007-02-24
| | | | | | | Move tricky "delete the member of the smartlist currently under iteration" logic into its own happyfun macro. svn:r9633
* fix crash introduced in r9622Roger Dingledine2007-02-24
| | | | svn:r9632
* make it stop crashing when i exercise the new entrynodes behavior inRoger Dingledine2007-02-24
| | | | | | | | r9574. this hack is getting pretty darn hackish; perhaps it's time to not use SMARTLIST_FOREACH in this situation. svn:r9629
* r11885@catbus: nickm | 2007-02-23 13:34:24 -0500Nick Mathewson2007-02-23
| | | | | | | Fix an XXXX012: make entry guards _really_ get retried when the network comes back online. svn:r9622
* r11832@catbus: nickm | 2007-02-16 15:31:59 -0500Nick Mathewson2007-02-16
| | | | | | | Fix 35 remaining DOCDOC comments. Yowza. svn:r9596
* r11785@catbus: nickm | 2007-02-12 20:27:48 -0500Nick Mathewson2007-02-13
| | | | | | | Node-picking fixes: Never warn when a down node is listed in a config option (bug 348); always warn when a node in a config option is unnamed. Also, when entrynodes is configured, then build the guard list as: (parts of EntryNodes that were guards before), (the rest of EntryNodes), (the rest of the old guards). This last point ensures that EntryNode users will get the EntryNodes they want with the minimum change to their guard list. svn:r9574
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* r11773@catbus: nickm | 2007-02-12 15:18:48 -0500Nick Mathewson2007-02-12
| | | | | | | Implement proposal 106: stop requiring clients to have certificates, and stop checking for nicknames in certificates. [See proposal 106 for rationale.] Also improve messages when checking TLS handshake, to re-resolve bug 382. svn:r9568
* r11726@catbus: nickm | 2007-02-08 16:04:53 -0500Nick Mathewson2007-02-08
| | | | | | | | | | | | | | | | Resolve some XXXX012 items: - Remove PathlenCoinWeight: if we want it again, we can add it back in. - Ditto with RelayBandwidth*. - Decide to leave in the "hey, you didn't set end_reason!" BUG log message, but stop telling people to bug me personally. - Postpone strengthening assert_connection_ok(): it's important, but it's also a good way to introduce weird bugs. - Move some expensive consistency checking from dns_free_all() into assert_cache_ok(). svn:r9533
* r11702@catbus: nickm | 2007-02-08 02:10:19 -0500Nick Mathewson2007-02-08
| | | | | | | Wow. Remember when I wrote that script to tell me about macros that were never used? Good times. svn:r9525
* cleanups based on looking through svn commitsRoger Dingledine2007-02-06
| | | | svn:r9491
* r11637@catbus: nickm | 2007-02-05 12:41:51 -0500Nick Mathewson2007-02-05
| | | | | | | Fix an XXXX012, and make circuits_pending_or_conns a static variable. In addition to cleaning up the code, this may also resolve Bug 386 if Roger has the right intuition there. svn:r9482
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477
* r11607@catbus: nickm | 2007-01-30 17:19:27 -0500Nick Mathewson2007-01-30
| | | | | | | Audit non-const char arguments; make a lot more of them const. svn:r9466
* r11606@catbus: nickm | 2007-01-30 16:52:23 -0500Nick Mathewson2007-01-30
| | | | | | | Write the entry guards section of path-spec; note a possible bug in cirbuitbuild.c; add a const; defer work on torrc.complete to be part of a bigger config documentation reorg. svn:r9465
* If the user asks to use invalid exit nodes, be willing to use theRoger Dingledine2007-01-27
| | | | | | | unstable ones. svn:r9441
* Bring us one step closer to being able to establish an encryptedRoger Dingledine2007-01-27
| | | | | | | | | directory tunnel without knowing a descriptor first. Still not ready yet. As part of the change, now assume we can use a create_fast cell if we don't know anything about a router. svn:r9440
* r11493@catbus: nickm | 2007-01-24 18:41:52 -0500Nick Mathewson2007-01-24
| | | | | | | Use set_uint16/32 instead of raw assignments in order to make gcc happier. svn:r9399