aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
Commit message (Collapse)AuthorAge
* convert some more source files to the new log conventionRoger Dingledine2006-02-13
| | | | svn:r6002
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* fix bug 245: When modifying the orconn_circid_map map, we wouldRoger Dingledine2006-02-09
| | | | | | | | | | | | sometimes decrement conn->n_circuits even when there was no circuit originally. This caused conn->n_circuits to go negative. We noticed this because we were checking if connections can be closed based on conn->n_circuits == 0, so we were never closing any connection that had ever had a circuit on it. svn:r5931
* Add reasons to DESTROY and RELAY_TRUNCATED cells.Nick Mathewson2006-01-05
| | | | svn:r5734
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* another possible patch related to circuit_free and memory stomping.Nick Mathewson2005-12-14
| | | | svn:r5580
* sometimes, when we just started tor, we haven't created thatRoger Dingledine2005-12-14
| | | | | | | smartlist yet. so don't free it. svn:r5577
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551
* Release memory from conn_circid_circuit_map on exit.Nick Mathewson2005-12-08
| | | | svn:r5535
* Better fix for last bug: avoids trying to double-mark circuits.Nick Mathewson2005-12-05
| | | | svn:r5511
* We were neglecting to unlink marked circuits from soon-to-close OR connections.Nick Mathewson2005-12-05
| | | | svn:r5510
* Check magic when removing old connection from map.Nick Mathewson2005-12-05
| | | | svn:r5508
* Clean up some comments; remove some dead codeNick Mathewson2005-12-03
| | | | svn:r5493
* cvs diff -u src/or/circuitlist.c | less almost never does what you want in C.Nick Mathewson2005-12-03
| | | | svn:r5491
* Expunge remaining places where we used "tree" to mean "associative array".Nick Mathewson2005-12-03
| | | | svn:r5490
* Shave off another 4.7%: remove a linear search when figuring out which ↵Nick Mathewson2005-12-03
| | | | | | circuits wanted us to open a given OR connection. svn:r5489
* when returning a list of circuits, don't return a list of the sameRoger Dingledine2005-11-28
| | | | | | | conn over and over. that's really bad for memory. svn:r5463
* "How about 'never'? Does 'never' work for you?"Nick Mathewson2005-11-26
| | | | | | | | | | | | | | | | | Weasel says circuit_get_by_conn is his main timesink. Most of its users were just checking whether OR conns had circuits, so add a circuit count to OR conns, and check that. One was circuit_about_to_close_conn, which was doing an O(n^2) series of calls to get all circs on an OR conn, so make an O(n) function for that. Finally, circuit_get_by_edge_conn was using it as a sanity test that has been around for a while but never found any actualy insanity, so kill that. circuit_get_by_conn is finally dead, which is good, since it was never sane to begin with. svn:r5460
* Start the process of treating internal circuits and exit circuitsRoger Dingledine2005-11-25
| | | | | | | | | | | | | | | | | | | separately. It's important to keep them separate because internal circuits have their last hops picked like middle hops, rather than like exit hops. So exiting on them will break the user's expectations. - Stop cannibalizing internal circuits for general exits, and stop cannibalizing exit circuits for rendezvous stuff. - Don't let new exit streams attach to internal circuits. - When deciding if we have enough circuits for internal and for exit, don't count the wrong ones. - Treat predicted resolves as predicted port 80 exits. svn:r5457
* Replace balanced trees with hash tables: this should make stuff ↵Nick Mathewson2005-11-23
| | | | | | significantly faster. svn:r5441
* misc cleanupsRoger Dingledine2005-11-19
| | | | svn:r5428
* remove some redundant (and misleading) codeRoger Dingledine2005-11-19
| | | | svn:r5425
* speed up the lookup-by-circid-orconn now that it seems thatRoger Dingledine2005-11-11
| | | | | | | our code works. svn:r5358
* when we were cannibalizing a circuit with a particular exitRoger Dingledine2005-11-11
| | | | | | | | node in mind, we weren't checking to see if that exit node was already present earlier in the circuit. oops. svn:r5357
* make circ->onionskin a pointer, not a static array. moria2 was usingRoger Dingledine2005-10-29
| | | | | | | | 125000 circuit_t's after it had been up for a few weeks, which translates to 20+ megs of wasted space. svn:r5333
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* fix another segv, this time in circid fix.Nick Mathewson2005-10-25
| | | | svn:r5312
* Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" ↵Nick Mathewson2005-10-25
| | | | | | domain. Domains are now bitmasks... just in case. Make some err msgs non-general. svn:r5309
* Fix one possible source of reuse-a-circuit-id bug; convert circuitbuild to ↵Nick Mathewson2005-10-24
| | | | | | new logging svn:r5301
* Update more files to new log stuff.Nick Mathewson2005-10-18
| | | | svn:r5286
* fix some typosRoger Dingledine2005-10-18
| | | | svn:r5283
* fix a few commentsRoger Dingledine2005-10-17
| | | | svn:r5262
* Using RAND_pseudo_bytes instead of RAND_bytes is an accident waiting to ↵Nick Mathewson2005-10-06
| | | | | | happen, and does not really speed us up much when we do it. So stop doing it. svn:r5210
* infrastructure for the 'change pseudonym' button.Roger Dingledine2005-10-05
| | | | | | | not used yet. svn:r5199
* Reformat inconsistent function declarations.Nick Mathewson2005-09-30
| | | | svn:r5160
* suppress all our usual compiler warnings, including a longstanding one from ↵Nick Mathewson2005-09-29
| | | | | | tree.h svn:r5149
* Be consistent about preferring foo* to struct foo*Nick Mathewson2005-07-22
| | | | svn:r4637
* remove pointless XXXX. It was there to remind me to do something I already did.Nick Mathewson2005-07-14
| | | | svn:r4557
* trivial changes on nick's rendezvous commitRoger Dingledine2005-07-14
| | | | svn:r4553
* fix another compile warnRoger Dingledine2005-07-01
| | | | svn:r4516
* Logic to implement rendezvous/introduction via unknown servers.Nick Mathewson2005-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a new extend_info_t datatype to hold information needed to extend a circuit (addr,port,keyid,onion_key). Use it in cpath and build_state. Make appropriate functions take or return it instead of routerinfo_t or keyid. - #if 0 needless check in circuit_get_by_edge_conn; if nobody triggers this error in 0.1.0.10, nobody will trigger it. - Implement new hidden service descriptor format, which contains "extend info" for introduction points, along with protocol version list. - Parse new format. - Generate new format - Cache old and new formats alongside each other. - Directories serve "old" format if asked in old way, "newest available" format if asked in new way. - Use new format to find introduction points if possible; otherwise fall back. Keep nickname lists and extendinfo lists in sync. - Tests for new format. - Implement new "v2" INTRODUCE cell format. - Accept new format - Use new format if we have a versioned service descriptor that says the server accepts the new format. - Add documentation for functions and data types. svn:r4506
* Implement all the rest of the new controller protocol, debug a little, add ↵Nick Mathewson2005-06-19
| | | | | | some new features, add ADDRMAP events. svn:r4460
* Docment or add DOCDOC comments to undocumented functions in src/or. Make ↵Nick Mathewson2005-06-11
| | | | | | function definition format uniform. svn:r4411
* Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson2005-06-09
| | | | svn:r4382
* New whitespace normalization rule: no blank line at EOF.Nick Mathewson2005-06-09
| | | | svn:r4378
* first iteration of scrubbing sensitive strings from logs.Roger Dingledine2005-05-03
| | | | | | | also generally clean up log messages. svn:r4174
* New and frightening code to implement fast-path first-hop CREATE_FAST cells. ↵Nick Mathewson2005-05-02
| | | | | | Watch out when we bump the version to 0.1.0.6-rc! svn:r4162
* Fixs a signed/unsigned comparisonNick Mathewson2005-04-08
| | | | svn:r4055
* Add missing "char"Nick Mathewson2005-04-08
| | | | svn:r4054
* Improve conn_*_to_string; add circuit_state_to_string; make ↵Nick Mathewson2005-04-07
| | | | | | skewed-descriptor messages better. svn:r4047