aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
Commit message (Expand)AuthorAge
* start allowing clients to give up on trackhostexits targets if•••five circuit attempts fail for a given stream. part of the fix for bug 437. still an XXX020rc remaining. svn:r13648 Roger Dingledine2008-02-21
* don't throw around an int for relay_command if we're going to•••squeeze it into a uint8_t later. also reported by veracode. svn:r13607 Roger Dingledine2008-02-20
* rearrange our assert so we don't possibly overflow rh.length before•••triggering the assert. reported by veracode. svn:r13601 Roger Dingledine2008-02-19
* r14170@tombo: nickm | 2008-02-15 11:50:38 -0500••• Fix or downgrade a bunch of xxx020 items. svn:r13527 Nick Mathewson2008-02-15
* r18051@catbus: nickm | 2008-02-12 15:20:43 -0500••• Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484 Nick Mathewson2008-02-12
* r14061@tombo: nickm | 2008-02-08 14:30:42 -0500••• Add a couple of (currently disabled) strategies for trying to avoid using too much ram in memory pools: prefer putting new cells in almost-full chunks, and be willing to free the last empty chunk if we have not needed it for a while. Also add better output to mp_pool_log_status to track how many mallocs a given memory pool strategy is saving us, so we can tune the mempool parameters. svn:r13428 Nick Mathewson2008-02-08
* r17963@catbus: nickm | 2008-02-07 10:14:25 -0500••• Be more thorough about memory poisoning and clearing. Add an in-place version of aes_crypt in order to remove a memcpy from relay_crypt_one_payload. svn:r13414 Nick Mathewson2008-02-07
* Update some copyright notices: it is now 2008.•••svn:r13412 Nick Mathewson2008-02-07
* misc small fixes•••svn:r13403 Roger Dingledine2008-02-06
* r17915@catbus: nickm | 2008-02-05 16:28:57 -0500••• Remove a dead function. svn:r13389 Nick Mathewson2008-02-05
* New config options WarnPlaintextPorts and RejectPlaintextPorts so•••Tor can warn and/or refuse connections to ports commonly used with vulnerable-plaintext protocols. We still need to figure out some good defaults for them. svn:r13198 Roger Dingledine2008-01-20
* r15779@tombo: nickm | 2008-01-01 23:43:24 -0500••• Use reference-counting to avoid allocating a zillion little addr_policy_t objects. (This is an old patch that had been sitting on my hard drive for a while.) svn:r13017 Nick Mathewson2008-01-02
* clean up copyrights, and assign 2007 copyrights to The Tor Project, Inc•••svn:r12786 Roger Dingledine2007-12-12
* r16670@catbus: nickm | 2007-11-14 14:56:30 -0500••• Initial phase of proposal 110: accept RELAY_EARLY cells, and turn them into RELAY cells when sending them on over a v1 OR connection. svn:r12496 Nick Mathewson2007-11-14
* r14227@Kushana: nickm | 2007-08-27 11:33:28 -0400••• Add a new ClientDNSRejectInternalAddresses option (default: on) to refuse to believe that any address can map to or from an internal address. This blocks some kinds of potential browser-based attacks, especially on hosts using DNSPort. Also clarify behavior in some comments. Backport candiate? svn:r11287 Nick Mathewson2007-08-27
* r14093@catbus: nickm | 2007-08-08 01:49:54 -0400••• Include fewer redundant headers; use the compiler search paths better. svn:r11060 Nick Mathewson2007-08-08
* r14001@catbus: nickm | 2007-07-29 21:31:53 -0400••• Try to call time(NULL) a little less. svn:r10980 Nick Mathewson2007-07-30
* Be even more aggressive about separating local traffic from relayed•••traffic when RelayBandwidthRate is set. (Refines proposal 111.) svn:r10974 Roger Dingledine2007-07-29
* Keep streamids from different exits on a circuit separate. This•••bug may have allowed other routers on a given circuit to inject cells into streams. Reported by lodger; fixes bug 446. [Bugfix on 0.1.2.x] svn:r10818 Roger Dingledine2007-07-12
* r13666@catbus: nickm | 2007-07-10 13:10:00 -0400••• Get the RESOLVE controller code working. svn:r10781 Nick Mathewson2007-07-10
* r13143@catbus: nickm | 2007-06-01 16:43:40 -0400••• Try to fix some mipspro compiler warnings. There will still be some left. svn:r10444 Nick Mathewson2007-06-02
* r13050@catbus: nickm | 2007-05-29 13:31:11 -0400••• Resolve all but 3 DOCDOCs. svn:r10393 Nick Mathewson2007-05-29
* polish r9933-r9994•••svn:r10335 Roger Dingledine2007-05-25
* r12936@catbus: nickm | 2007-05-24 14:12:34 -0400••• Review XXXX comments without a version; upgrade some to XXXX020. svn:r10315 Nick Mathewson2007-05-24
* r12769@catbus: nickm | 2007-05-16 17:32:01 -0400••• Fix warnings from -Wunsafe-loop-optimizations, which incidentally turned up a logic bug in connection_or_flush_from_first_active_circuit that would overcount the number of cells flushed. svn:r10199 Nick Mathewson2007-05-16
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400••• Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198 Nick Mathewson2007-05-16
* minor cleanups•••svn:r10050 Roger Dingledine2007-04-30
* r12544@catbus: nickm | 2007-04-29 21:08:58 -0400••• Fix an assertion when we call tor_free_all before calling do_main_loop(). Discovered by weasel. svn:r10046 Nick Mathewson2007-04-30
* stop generating a 6-gig info-level log file after a day of running•••svn:r10023 Roger Dingledine2007-04-25
* r12458@catbus: nickm | 2007-04-19 15:52:23 -0400••• Fix a bug in displaying memory pool usage. Also dump cell allocation, and track padded_cell_ts as they are allocated and freed, to make sure we are not leaking cells. svn:r9992 Nick Mathewson2007-04-19
* r12456@catbus: nickm | 2007-04-19 14:47:01 -0400••• Make dumpmemusage() dump cell pool usage information. svn:r9991 Nick Mathewson2007-04-19
* r12349@catbus: nickm | 2007-04-11 09:18:15 -0400••• Add code to shrink the cell memory pool by discarding empty chunks that have been empty for the last 60 seconds. Also, instead of having test.c duplicate declarations for exposed functions, put them inside #ifdef foo_PRIVATE blocks in the headers. This prevents bugs where test.c gets out of sync. svn:r9944 Nick Mathewson2007-04-11
* r12344@catbus: nickm | 2007-04-10 21:27:25 -0400••• Fix documentation and usage of 2nd argument to mp_pool_new. svn:r9942 Nick Mathewson2007-04-11
* r12338@catbus: nickm | 2007-04-10 20:29:05 -0400••• Document memory pool implementation, and tweak it even mor. See? Programming is fun. svn:r9940 Nick Mathewson2007-04-11
* r12337@catbus: nickm | 2007-04-10 17:55:26 -0400••• Add support for using memory pools to allocate queued cell; pass --disable-cell-pool to configure to disable this. svn:r9939 Nick Mathewson2007-04-11
* r12332@catbus: nickm | 2007-04-10 12:24:45 -0400••• Yet another attempted Bug 411 fix: Under some circumstances, a circuit can have cells without being active. The likeliest is that it has been unlinked from all connections in preparation for closing. Therefore, stop enforcing this non-invariant. svn:r9936 Nick Mathewson2007-04-10
* r12330@catbus: nickm | 2007-04-09 19:15:42 -0400••• Split type of "packed cell" from "parsed cell"; pack cells before queueing them on circuits. This will help us avoid dumb errors when we confuse the two types. svn:r9935 Nick Mathewson2007-04-09
* Fix a crash bug in cell queues: It is possible for a connection_write_to_buf ...•••svn:r9915 Nick Mathewson2007-03-29
* r12654@Kushana: nickm | 2007-03-25 19:03:44 -0400••• Add documentation for cell queue functions; make destroy cells result in cell queues getting cleared before the destroy gets sent. svn:r9907 Nick Mathewson2007-03-26
* r12652@Kushana: nickm | 2007-03-25 15:01:48 -0400••• A surprisingly simple patch to stop reading on edge connections when their circuits get too full, and start again when they empty out. This lets us remove the logic to block begin_dir conns when the corresponding or conns get full: it was already broken by cell queues anyway. svn:r9905 Nick Mathewson2007-03-26
* r12651@Kushana: nickm | 2007-03-24 18:26:42 -0400••• 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 Nick Mathewson2007-03-26
* r12644@0-41-wifi: nickm | 2007-03-23 16:02:23 -0400••• Eliminate more redundant circuit_t arguments when edge_connection_t is already supplied and the circuit is already attached. svn:r9900 Nick Mathewson2007-03-24
* r12643@0-41-wifi: nickm | 2007-03-23 14:56:35 -0400••• Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit. svn:r9899 Nick Mathewson2007-03-24
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500••• 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 Nick Mathewson2007-03-04
* more cleanups; getting closer•••svn:r9655 Roger Dingledine2007-02-26
* r11895@catbus: nickm | 2007-02-23 15:12:58 -0500••• Make remap stream events have a souce; make them generated every time we get a successful connected or resolved cell. Also change reported stream target address to IP consistently when we get the IP from an exit node. svn:r9624 Nick Mathewson2007-02-23
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500••• Update copyright dates. svn:r9570 Nick Mathewson2007-02-12
* r11673@catbus: nickm | 2007-02-06 14:40:07 -0500••• Report stream end events where a resolve succeeded or where we got a socks protocol error correctly, rather than calling both of them "INTERNAL". Turn ALREADY_SOCKS_REPLIED into a flag rather than a reason. This will help debug 367 part 2 a little. svn:r9511 Nick Mathewson2007-02-07
* r11641@catbus: nickm | 2007-02-05 13:59:26 -0500••• Add a REMAP state to stream events so that controllers can learn exactly when the target address for a stream has changed. May help Vidalia resolve confusions related to bug 375. svn:r9484 Nick Mathewson2007-02-05
* r11736@Kushana: nickm | 2006-12-28 17:46:23 -0500••• Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy. svn:r9205 Nick Mathewson2006-12-29