aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
Commit message (Collapse)AuthorAge
* r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson2008-08-05
| | | | | | | Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435
* r17323@aud-055: nickm | 2008-07-23 17:58:25 +0200Nick Mathewson2008-07-23
| | | | | | | Implement most of proposal 110. svn:r16156
* consolidate all our edge/circ/orconn reason-to-foo-or-back functionsRoger Dingledine2008-06-11
| | | | svn:r15115
* some cleanups in preparation for moving stuff aroundRoger Dingledine2008-06-10
| | | | svn:r15112
* minor fixes and notesRoger Dingledine2008-06-10
| | | | svn:r15111
* report partial bootstrapping progress as we fetch descriptorsRoger Dingledine2008-06-09
| | | | svn:r15083
* infrastructure for the 'bootstrap status event' feature, so we canRoger Dingledine2008-06-07
| | | | | | | | tell the controller how we're doing at bootstrapping, and it can tell the user. svn:r15008
* r19273@catbus: nickm | 2008-04-09 14:44:23 -0400Nick Mathewson2008-04-09
| | | | | | | Do a slightly better fix for r14329: don't call time() quite so much. Also note the time(NULL) hack we wanted to do in the TODO. svn:r14334
* r19262@catbus: nickm | 2008-04-09 14:05:20 -0400Nick Mathewson2008-04-09
| | | | | | | When writing relay cells to a buffer, update timestamp_last_added_nonpadding. Bugfix on 0.2.0.1-alpha. Backport candidate. svn:r14329
* r18941@catbus: nickm | 2008-03-18 14:59:43 -0400Nick Mathewson2008-03-18
| | | | | | | Likely fix for bug 632: do not call start_reading on a placeholder connection. svn:r14109
* r18862@catbus: nickm | 2008-03-16 23:33:11 -0400Nick Mathewson2008-03-17
| | | | | | | Part of fix for bug 617: allow connection_ap_handshake_attach_circuit() to mark connections, to avoid double-mark warnings. Note that this is an incomplete refactoring. svn:r14066
* Quiet the "Exitrouter '%s' seems to be more restrictive than its exitRoger Dingledine2008-02-22
| | | | | | | | policy. Not using this router as exit for now." message, since it legitimately appears every so often and there's no need to alarm users. svn:r13677
* start allowing clients to give up on trackhostexits targets ifRoger Dingledine2008-02-21
| | | | | | | | five circuit attempts fail for a given stream. part of the fix for bug 437. still an XXX020rc remaining. svn:r13648
* don't throw around an int for relay_command if we're going toRoger Dingledine2008-02-20
| | | | | | | squeeze it into a uint8_t later. also reported by veracode. svn:r13607
* rearrange our assert so we don't possibly overflow rh.length beforeRoger Dingledine2008-02-19
| | | | | | | triggering the assert. reported by veracode. svn:r13601
* r14170@tombo: nickm | 2008-02-15 11:50:38 -0500Nick Mathewson2008-02-15
| | | | | | | Fix or downgrade a bunch of xxx020 items. svn:r13527
* r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson2008-02-12
| | | | | | | 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
* r14061@tombo: nickm | 2008-02-08 14:30:42 -0500Nick Mathewson2008-02-08
| | | | | | | 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
* r17963@catbus: nickm | 2008-02-07 10:14:25 -0500Nick Mathewson2008-02-07
| | | | | | | 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
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* misc small fixesRoger Dingledine2008-02-06
| | | | svn:r13403
* r17915@catbus: nickm | 2008-02-05 16:28:57 -0500Nick Mathewson2008-02-05
| | | | | | | Remove a dead function. svn:r13389
* New config options WarnPlaintextPorts and RejectPlaintextPorts soRoger Dingledine2008-01-20
| | | | | | | | | | 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
* r15779@tombo: nickm | 2008-01-01 23:43:24 -0500Nick Mathewson2008-01-02
| | | | | | | 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
* clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine2007-12-12
| | | | svn:r12786
* r16670@catbus: nickm | 2007-11-14 14:56:30 -0500Nick Mathewson2007-11-14
| | | | | | | 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
* r14227@Kushana: nickm | 2007-08-27 11:33:28 -0400Nick Mathewson2007-08-27
| | | | | | | 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
* r14093@catbus: nickm | 2007-08-08 01:49:54 -0400Nick Mathewson2007-08-08
| | | | | | | Include fewer redundant headers; use the compiler search paths better. svn:r11060
* r14001@catbus: nickm | 2007-07-29 21:31:53 -0400Nick Mathewson2007-07-30
| | | | | | | Try to call time(NULL) a little less. svn:r10980
* Be even more aggressive about separating local traffic from relayedRoger Dingledine2007-07-29
| | | | | | | traffic when RelayBandwidthRate is set. (Refines proposal 111.) svn:r10974
* Keep streamids from different exits on a circuit separate. ThisRoger Dingledine2007-07-12
| | | | | | | | | 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
* r13666@catbus: nickm | 2007-07-10 13:10:00 -0400Nick Mathewson2007-07-10
| | | | | | | Get the RESOLVE controller code working. svn:r10781
* r13143@catbus: nickm | 2007-06-01 16:43:40 -0400Nick Mathewson2007-06-02
| | | | | | | Try to fix some mipspro compiler warnings. There will still be some left. svn:r10444
* r13050@catbus: nickm | 2007-05-29 13:31:11 -0400Nick Mathewson2007-05-29
| | | | | | | Resolve all but 3 DOCDOCs. svn:r10393
* polish r9933-r9994Roger Dingledine2007-05-25
| | | | svn:r10335
* r12936@catbus: nickm | 2007-05-24 14:12:34 -0400Nick Mathewson2007-05-24
| | | | | | | Review XXXX comments without a version; upgrade some to XXXX020. svn:r10315
* r12769@catbus: nickm | 2007-05-16 17:32:01 -0400Nick Mathewson2007-05-16
| | | | | | | 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
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson2007-05-16
| | | | | | | Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198
* minor cleanupsRoger Dingledine2007-04-30
| | | | svn:r10050
* r12544@catbus: nickm | 2007-04-29 21:08:58 -0400Nick Mathewson2007-04-30
| | | | | | | Fix an assertion when we call tor_free_all before calling do_main_loop(). Discovered by weasel. svn:r10046
* stop generating a 6-gig info-level log file after a day of runningRoger Dingledine2007-04-25
| | | | svn:r10023
* r12458@catbus: nickm | 2007-04-19 15:52:23 -0400Nick Mathewson2007-04-19
| | | | | | | 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
* r12456@catbus: nickm | 2007-04-19 14:47:01 -0400Nick Mathewson2007-04-19
| | | | | | | Make dumpmemusage() dump cell pool usage information. svn:r9991
* r12349@catbus: nickm | 2007-04-11 09:18:15 -0400Nick Mathewson2007-04-11
| | | | | | | 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
* r12344@catbus: nickm | 2007-04-10 21:27:25 -0400Nick Mathewson2007-04-11
| | | | | | | Fix documentation and usage of 2nd argument to mp_pool_new. svn:r9942
* r12338@catbus: nickm | 2007-04-10 20:29:05 -0400Nick Mathewson2007-04-11
| | | | | | | Document memory pool implementation, and tweak it even mor. See? Programming is fun. svn:r9940
* r12337@catbus: nickm | 2007-04-10 17:55:26 -0400Nick Mathewson2007-04-11
| | | | | | | Add support for using memory pools to allocate queued cell; pass --disable-cell-pool to configure to disable this. svn:r9939
* r12332@catbus: nickm | 2007-04-10 12:24:45 -0400Nick Mathewson2007-04-10
| | | | | | | 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
* r12330@catbus: nickm | 2007-04-09 19:15:42 -0400Nick Mathewson2007-04-09
| | | | | | | 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
* Fix a crash bug in cell queues: It is possible for a connection_write_to_buf ↵Nick Mathewson2007-03-29
| | | | | | to close the connection or otherwise unlink the circuit, which makes the circuit nonactive, which invalidates the pointer from the circuit to the next circuit on the active ring. Also add a bunch of asserts, most #ifdefed out. svn:r9915