summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2008-07-31Make compiler with GCC warnings enabled happy.Karsten Loesing
svn:r16300
2008-07-30 r17436@tombo: nickm | 2008-07-30 09:03:19 -0400Nick Mathewson
Move n_addr, n_port, and n_conn_id_digest fields of circuit_t into a separately allocated extend_info_t. Saves 22 bytes per connected circuit_t on 32-bit platforms, and makes me more comfortable with using tor_addr_t in place of uint32_t n_addr. svn:r16257
2008-07-30 r17435@tombo: nickm | 2008-07-30 08:50:54 -0400Nick Mathewson
Allow alternate form of SMARTLIST_FOREACH with paired BEGIN and END macros. This lets the compiler tell us which line an error has occurred on. svn:r16256
2008-07-30 r17434@tombo: nickm | 2008-07-29 10:58:36 -0400Nick Mathewson
Refactor tor_addr_from_string: it didnt need most of parse_addr_mask_port_range, and its dependence on that latter function made it less flexible. svn:r16255
2008-07-29 r17426@tombo: nickm | 2008-07-28 20:34:03 -0400Nick Mathewson
More test coverage for tor_addr_t; fix a couple of bugs. svn:r16234
2008-07-25 r17391@pc-10-8-1-079: nickm | 2008-07-25 17:11:17 +0200Nick Mathewson
Tor_addr_compare did a semantic comparison, such that ::1.2.3.4 and 1.2.3.4 were "equal". we sometimes need an exact comparison. Add a feature to do that. svn:r16210
2008-07-25 r17359@pc-10-8-1-079: nickm | 2008-07-25 16:42:48 +0200Nick Mathewson
whitespace fixes svn:r16209
2008-07-25 r17358@pc-10-8-1-079: nickm | 2008-07-25 16:41:03 +0200Nick Mathewson
Split out the address manipulation functions from compat and util: they were about 21% of the total of those, and spread out too much. svn:r16208
2008-07-24 r17346@aud-055: nickm | 2008-07-24 15:37:19 +0200Nick Mathewson
Make generic address manipulation functions work better. Switch address policy code to use tor_addr_t, so it can handle IPv6. That is a good place to start. svn:r16178
2008-07-24 r17338@aud-055: nickm | 2008-07-24 11:21:06 +0200Nick Mathewson
Refactor the router_choose_random_node interface: any function with 10 parameters, most of which are boolean and one of which is unused, should get refactored like this. svn:r16167
2008-07-24 r17337@aud-055: nickm | 2008-07-24 10:17:43 +0200Nick Mathewson
Refactor the is_vote field of networkstatus_t to add a third possibility ("opinion") in addition to vote and opinion. First part of implementing proposal 147. svn:r16166
2008-07-23 r17323@aud-055: nickm | 2008-07-23 17:58:25 +0200Nick Mathewson
Implement most of proposal 110. svn:r16156
2008-07-23 r17322@aud-055: nickm | 2008-07-23 16:50:50 +0200Nick Mathewson
Make circid_t and streamid_t get used instead of uint16_t; it is possible we will soon want to make circid_t change to uint32_t. svn:r16155
2008-07-23 r17309@aud-055: nickm | 2008-07-23 16:05:43 +0200Nick Mathewson
Patch from Christian Wilms: remove (HiddenService|Rend)(Exclude)?Nodes options. They never worked properly, and nobody seems to be using them. Resolves bug 754. svn:r16144
2008-07-23 r17308@aud-055: nickm | 2008-07-23 15:57:41 +0200Nick Mathewson
In connection_edge_destroy, send a stream status control event when we have an AP connection. Previously, we would send an event when the connection was AP and non-AP at the same time. This didn't work so well. Patch from Anonymous Remailer (Austria). Backport candidate. svn:r16143
2008-07-23 r17302@aud-055: nickm | 2008-07-23 14:55:28 +0200Nick Mathewson
Never allow a circuit to be created with the same circid as a circuit that has been marked for close. May be a fix for bug 779. Needs testing. Backport candidate. svn:r16136
2008-07-18 r17220@tombo: nickm | 2008-07-18 15:11:27 -0400Nick Mathewson
Fix bug in last patch: ADDR_POLICY_REJECT is not the same as ADDR_POLICY_REJECTED. svn:r16065
2008-07-18 r17188@tombo: nickm | 2008-07-18 14:35:18 -0400Nick Mathewson
Add new ExcludeExitNodes option. Also add a new routerset type to handle Exclude[Exit]Nodes. It is optimized for O(1) membership tests, so as to make choosing a random router run in O(N_routers) time instead of in O(N_routers*N_Excluded_Routers). svn:r16061
2008-07-16Stop trying to detect versions of Tor on the server-side older than ↵Nick Mathewson
0.1.1.15-rc; they simply do not work any more. Also add comment about how or_is_obsolete is a terrible field name. svn:r15982
2008-07-11When relays do their initial bandwidth measurement, don't limitRoger Dingledine
to just our our entry guards for the test circuits. Otherwise we tend to have multiple test circuits going through a single entry guard, which makes our bandwidth test less accurate. Fixes part of bug 654; patch contributed by Josh Albrecht. (Actually, modify Josh's patch to avoid doing that when you're a bridge relay, since it would leak more than we want to leak.) svn:r15850
2008-07-11 r16917@tombo: nickm | 2008-07-11 12:55:26 -0400Nick Mathewson
Remove token enum constant in routerparse.c that we do not actually use. svn:r15841
2008-07-10Fix bug 763. When a hidden service is giving up on an introduction point ↵Karsten Loesing
candidate that was not included in the last published rendezvous descriptor, don't reschedule publication of the next descriptor. svn:r15825
2008-07-10 r16882@tombo: nickm | 2008-07-10 14:31:25 -0400Nick Mathewson
Fix for session-related bug found by Geoff Goodell. backport candidate, once tested. svn:r15821
2008-07-10 r16881@tombo: nickm | 2008-07-10 14:19:21 -0400Nick Mathewson
fix a rare segfault in bw-share-measuring code svn:r15820
2008-07-09bump svn version to 0.2.1.2-alpha-devNick Mathewson
svn:r15806
2008-07-09Stop using __attribute__((nonnull)): It gets us occcasional warnings when we ↵Nick Mathewson
do something so foolish it can be detected without dataflow analysis, but it also eliminates some of our error checking code. Suggested by Peter Gutmann. svn:r15803
2008-07-06fix typos in last patch spotted by sebastian and karstenNick Mathewson
svn:r15700
2008-07-06Apply fix from chrisw: call connection_ap_attach_pending when we get a ↵Nick Mathewson
rendezvous2 or rendezvous_established call. This is a bit brute-foce, but it is better than we had before, and might not even show up on profiles. Backport candidate, once tested. svn:r15699
2008-07-06Fix the rest of the GCC warnings on OpenBSD_malloc_linux.cNick Mathewson
svn:r15698
2008-07-06Correct punctuation.Karsten Loesing
svn:r15690
2008-07-05Remove spurious "netintet" check from configure.inNick Mathewson
svn:r15672
2008-07-03 r16689@tombo: nickm | 2008-07-03 11:03:14 -0400Nick Mathewson
Fix for bug 742: do not use O_CREAT on 2-option version of open(). Especially do not use it on /dev/null. Fix from Michael Scherer. Bugfix on 0.0.2pre19 (wow). svn:r15626
2008-06-30forward-port r15576Roger Dingledine
svn:r15577
2008-06-30Make directory servers include the X-Your-Address-Is: http header inRoger Dingledine
their responses even for begin_dir conns. Now clients who only ever use begin_dir connections still have a way to learn their IP address. Should fix bug 737. Reported by goldy. svn:r15571
2008-06-28 r16587@tombo: nickm | 2008-06-28 00:13:40 -0400Nick Mathewson
fix for bug 704; found by sjmurdoch. Windows and recent openssl both want to define OCSP_RESPONSE; do not let them. svn:r15533
2008-06-24Send a bootstrap problem "warn" event on the first problem if theRoger Dingledine
reason is NO_ROUTE (that is, our network is down). svn:r15443
2008-06-23whoops, i shouldn't've left that inRoger Dingledine
svn:r15434
2008-06-20Added prefixes to testing-network-only configuration options.Karsten Loesing
svn:r15375
2008-06-20prepare for the 0.2.1.2-alpha release. we will tagRoger Dingledine
sometime today. get your fixes in soon. :) svn:r15371
2008-06-20If we close our OR connection because there's been a circuitRoger Dingledine
pending on it for too long, we were telling our bootstrap status events "REASON=NONE". Now tell them "REASON=TIMEOUT". svn:r15369
2008-06-20If you're using bridges, generate "bootstrap problem" warningsRoger Dingledine
as soon as you run out of working bridges, rather than waiting for ten failures -- which will never happen if you have less than ten bridges. svn:r15368
2008-06-20Big bridge bugfixes. Backport candidates.Roger Dingledine
If you have more than one bridge but don't know their keys, you would only learn a request for the descriptor of the first one on your list. (Tor considered launching requests for the others, but found that it already had a connection on the way for $0000...0000 so it didn't open another.) If you have more than one bridge but don't know their keys, and the connection to one of the bridges failed, you would cancel all pending bridge connections. (After all, they all have the same digest.) svn:r15366
2008-06-19start sending "COUNT=%d RECOMMENDATION=%s" key/values on bootstrapRoger Dingledine
problem status events, so the controller can hear about problems even before tor decides they're worth reporting for sure. svn:r15357
2008-06-18check-spaces, fix a typoRoger Dingledine
svn:r15355
2008-06-18Directory authorities shouldn't complain about bootstrappingRoger Dingledine
problems just because they do a lot of reachability testing and some of the connection attempts fail. svn:r15348
2008-06-18I was on the second paragraph of my or-dev mail explaining why I chose toRoger Dingledine
set starting=1 to avoid potential bugs with having it conflict with 0, which I used to mean uninitialized, when I realized I would be writing many more lame-sounding paragraphs in the future. Just start it at 0 and handle the bugs. svn:r15346
2008-06-18implement more fine-tuning options for stats codeNick Mathewson
svn:r15345
2008-06-17I was told there is an extend_info_free(). I won't leak memory again. I ↵Karsten Loesing
won't leak memory again. I won't ... svn:r15335
2008-06-17When establishing a hidden service, introduction points that originate from ↵Karsten Loesing
cannibalized circuits are completely ignored and not included in rendezvous service descriptors. Bugfix on 0.2.0.14-alpha. Backport candidate. svn:r15332
2008-06-17Send an initial "Starting" bootstrap status event, so we have aRoger Dingledine
state to start out in. svn:r15326