summaryrefslogtreecommitdiff
path: root/src/or/relay.c
AgeCommit message (Collapse)Author
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
2008-12-22Fix all of the doxygen warnings not pertaining to missing documentation.Nick Mathewson
svn:r17727
2008-12-18Make cell pools always-on.Nick Mathewson
svn:r17692
2008-12-18Replace calls to time(NULL) that occur on the order of once per read, one ↵Nick Mathewson
per write, or once per cell with calls to a function that looks at a cached value of time. This is tricksy to benchmark, since it will only help on systems where time() is a syscall and syscalls are relatively slow. svn:r17690
2008-12-17Resolve many DOCDOCs.Nick Mathewson
svn:r17662
2008-12-17Whitespace fix.Nick Mathewson
svn:r17650
2008-12-17Change CELL_DIRECTION_* to an enum.Nick Mathewson
svn:r17646
2008-12-17Move edge-only flags from connection_t to edge_connection_t.Nick Mathewson
svn:r17643
2008-12-14When a stream at an exit relay is in state "resolving" orRoger Dingledine
"connecting" and it receives an "end" relay cell, the exit relay would silently ignore the end cell and not close the stream. If the client never closes the circuit, then the exit relay never closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha; reported by "wood". svn:r17625
2008-10-27Verify cpath_layer match on rendezvous cells too. Fixes another case of bug ↵Nick Mathewson
446. Based on patch from rovv. svn:r17162
2008-10-17backport candidate:Roger Dingledine
The "ClientDNSRejectInternalAddresses" config option wasn't being consistently obeyed: if an exit relay refuses a stream because its exit policy doesn't allow it, we would remember what IP address the relay said the destination address resolves to, even if it's an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv. svn:r17135
2008-08-05 r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson
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
2008-07-23 r17323@aud-055: nickm | 2008-07-23 17:58:25 +0200Nick Mathewson
Implement most of proposal 110. svn:r16156
2008-06-11consolidate all our edge/circ/orconn reason-to-foo-or-back functionsRoger Dingledine
svn:r15115
2008-06-10some cleanups in preparation for moving stuff aroundRoger Dingledine
svn:r15112
2008-06-10minor fixes and notesRoger Dingledine
svn:r15111
2008-06-09report partial bootstrapping progress as we fetch descriptorsRoger Dingledine
svn:r15083
2008-06-07infrastructure for the 'bootstrap status event' feature, so we canRoger Dingledine
tell the controller how we're doing at bootstrapping, and it can tell the user. svn:r15008
2008-04-09 r19273@catbus: nickm | 2008-04-09 14:44:23 -0400Nick Mathewson
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
2008-04-09 r19262@catbus: nickm | 2008-04-09 14:05:20 -0400Nick Mathewson
When writing relay cells to a buffer, update timestamp_last_added_nonpadding. Bugfix on 0.2.0.1-alpha. Backport candidate. svn:r14329
2008-03-18 r18941@catbus: nickm | 2008-03-18 14:59:43 -0400Nick Mathewson
Likely fix for bug 632: do not call start_reading on a placeholder connection. svn:r14109
2008-03-17 r18862@catbus: nickm | 2008-03-16 23:33:11 -0400Nick Mathewson
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
2008-02-22Quiet the "Exitrouter '%s' seems to be more restrictive than its exitRoger Dingledine
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
2008-02-21start allowing clients to give up on trackhostexits targets ifRoger Dingledine
five circuit attempts fail for a given stream. part of the fix for bug 437. still an XXX020rc remaining. svn:r13648
2008-02-20don't throw around an int for relay_command if we're going toRoger Dingledine
squeeze it into a uint8_t later. also reported by veracode. svn:r13607
2008-02-19rearrange our assert so we don't possibly overflow rh.length beforeRoger Dingledine
triggering the assert. reported by veracode. svn:r13601
2008-02-15 r14170@tombo: nickm | 2008-02-15 11:50:38 -0500Nick Mathewson
Fix or downgrade a bunch of xxx020 items. svn:r13527
2008-02-12 r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson
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
2008-02-08 r14061@tombo: nickm | 2008-02-08 14:30:42 -0500Nick Mathewson
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
2008-02-07 r17963@catbus: nickm | 2008-02-07 10:14:25 -0500Nick Mathewson
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
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-02-06misc small fixesRoger Dingledine
svn:r13403
2008-02-05 r17915@catbus: nickm | 2008-02-05 16:28:57 -0500Nick Mathewson
Remove a dead function. svn:r13389
2008-01-20New config options WarnPlaintextPorts and RejectPlaintextPorts soRoger Dingledine
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
2008-01-02 r15779@tombo: nickm | 2008-01-01 23:43:24 -0500Nick Mathewson
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
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-11-14 r16670@catbus: nickm | 2007-11-14 14:56:30 -0500Nick Mathewson
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
2007-08-27 r14227@Kushana: nickm | 2007-08-27 11:33:28 -0400Nick Mathewson
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
2007-08-08 r14093@catbus: nickm | 2007-08-08 01:49:54 -0400Nick Mathewson
Include fewer redundant headers; use the compiler search paths better. svn:r11060
2007-07-30 r14001@catbus: nickm | 2007-07-29 21:31:53 -0400Nick Mathewson
Try to call time(NULL) a little less. svn:r10980
2007-07-29Be even more aggressive about separating local traffic from relayedRoger Dingledine
traffic when RelayBandwidthRate is set. (Refines proposal 111.) svn:r10974
2007-07-12Keep streamids from different exits on a circuit separate. ThisRoger Dingledine
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
2007-07-10 r13666@catbus: nickm | 2007-07-10 13:10:00 -0400Nick Mathewson
Get the RESOLVE controller code working. svn:r10781
2007-06-02 r13143@catbus: nickm | 2007-06-01 16:43:40 -0400Nick Mathewson
Try to fix some mipspro compiler warnings. There will still be some left. svn:r10444
2007-05-29 r13050@catbus: nickm | 2007-05-29 13:31:11 -0400Nick Mathewson
Resolve all but 3 DOCDOCs. svn:r10393
2007-05-25polish r9933-r9994Roger Dingledine
svn:r10335
2007-05-24 r12936@catbus: nickm | 2007-05-24 14:12:34 -0400Nick Mathewson
Review XXXX comments without a version; upgrade some to XXXX020. svn:r10315
2007-05-16 r12769@catbus: nickm | 2007-05-16 17:32:01 -0400Nick Mathewson
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
2007-05-16 r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson
Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198
2007-04-30minor cleanupsRoger Dingledine
svn:r10050