apparently i think of comments with no whitespace around them as
"read this if you don't understand the code and want some help."
which is not the same as "hey, you think you understand this code,
but you don't."
Fix an assert error introduced in 0.1.2.5-alpha: if you're an
advertised exit node, somebody might try to exit from you when
you're bootstrapping and before you've built your descriptor yet.
Nick Mathewson [Sat, 6 Jan 2007 07:34:02 +0000 (07:34 +0000)]
r11872@Kushana: nickm | 2007-01-06 02:14:12 -0500
Implement a control status event for bad libevent version/method combos. Warn that libevent <1.1 with select() is needlessly slow. Reply to comment.
Nick Mathewson [Sat, 6 Jan 2007 06:27:15 +0000 (06:27 +0000)]
r11864@Kushana: nickm | 2007-01-06 01:25:59 -0500
Fix an XXXX012 in connection.c: prevent overflows on unfeasibly-high-bandwidth servers on 32-bit architectures.
Nick Mathewson [Sat, 6 Jan 2007 06:26:53 +0000 (06:26 +0000)]
r11863@Kushana: nickm | 2007-01-06 01:12:24 -0500
Fix computation of total_exit_bandwidth; this will cause exits not to get recommended as guards if the total exit bandwidth if they constitute less than a third of total available bandwidth. There may be problems here with flapping; lets see if they occur in practice.
Nick Mathewson [Sat, 6 Jan 2007 06:26:46 +0000 (06:26 +0000)]
r11862@Kushana: nickm | 2007-01-06 01:05:15 -0500
Re-enable warning when we resolve an already resolved address. We only warn here now if the address is not a testing address. Also, refactor out a function to check whether an address is used for testing.
Nick Mathewson [Fri, 5 Jan 2007 23:34:31 +0000 (23:34 +0000)]
r11852@Kushana: nickm | 2007-01-05 18:34:27 -0500
More missing headers in configure.in in order to solve previous openbsd in6_addr issue and prevent related issues from arising.
Nick Mathewson [Wed, 3 Jan 2007 19:58:00 +0000 (19:58 +0000)]
r11820@Kushana: nickm | 2007-01-03 14:54:05 -0500
Add (and specify) a BadDirectory flag to networkstatuses, so authorities can tell clients that some caches are broken. Also, implement an as-yet-unused function to estimate how many bytes will be sent on a directory connection.
Nick Mathewson [Sun, 31 Dec 2006 19:31:45 +0000 (19:31 +0000)]
r11775@Kushana: nickm | 2006-12-31 14:27:02 -0500
Make the "Next Version" of the Tor protocol called "v2", not "v1". Make tor-spec.txt canonical and current again; make tor-spec-v2.txt be the "splufty next version" document.
Nick Mathewson [Sat, 30 Dec 2006 19:38:28 +0000 (19:38 +0000)]
r11769@Kushana: nickm | 2006-12-30 14:38:22 -0500
Write up some notes I found on a piece of paper while cleaning my living room. This way I can thow out the paper.
Nick Mathewson [Fri, 29 Dec 2006 20:50:24 +0000 (20:50 +0000)]
r11761@Kushana: nickm | 2006-12-29 15:45:56 -0500
Another cleanup: expand_exit_policy_aliases was totally redundant with respect to router_parse_[private_]addr_policy_private.
Nick Mathewson [Fri, 29 Dec 2006 05:07:25 +0000 (05:07 +0000)]
r11745@Kushana: nickm | 2006-12-29 00:00:28 -0500
Close any directory connection on which we have received 10MB or more of data. This prevents a malicious directory cache from running us out of memory by spooling an infinite amount of data. (Not a terribly good attack, but hey, every one helps.)
Nick Mathewson [Fri, 29 Dec 2006 05:06:47 +0000 (05:06 +0000)]
r11743@Kushana: nickm | 2006-12-28 23:13:21 -0500
Refactor _connection_controller_force_write back into conncetion_handle_write. Again, the line count goes down: groovy!
Nick Mathewson [Fri, 29 Dec 2006 03:42:46 +0000 (03:42 +0000)]
r11741@Kushana: nickm | 2006-12-28 22:41:29 -0500
Count TLS bytes accurately: previously, we counted only the number of bytes read or transmitted via tls, not the number of extra bytes used to do so. This has been a lonstanding wart. The fix "Works for me".
Nick Mathewson [Fri, 29 Dec 2006 02:47:51 +0000 (02:47 +0000)]
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.
Nick Mathewson [Thu, 28 Dec 2006 21:29:37 +0000 (21:29 +0000)]
r11727@Kushana: nickm | 2006-12-28 16:27:17 -0500
If we only have a single nameserver, raise the threshold to decide that the nameserver is dead. (Another fumbling attempt to do something about bug 326.)
Nick Mathewson [Thu, 28 Dec 2006 21:29:31 +0000 (21:29 +0000)]
r11726@Kushana: nickm | 2006-12-28 16:24:06 -0500
Expose a function from eventdns.c to set options without having to make a fake configuration file. Also, add more settable options
Nick Mathewson [Thu, 28 Dec 2006 21:29:20 +0000 (21:29 +0000)]
r11724@Kushana: nickm | 2006-12-28 14:22:35 -0500
Refactor and unify my-ip-addr-changed logic. Make change in IP address or in nameservers reset and relaunch DNS hijacking tests.
Nick Mathewson [Thu, 28 Dec 2006 21:29:11 +0000 (21:29 +0000)]
r11723@Kushana: nickm | 2006-12-28 13:52:48 -0500
Fix bug 364: check for whether popular hostnames (curently google, yahoo, mit, and slashdot) are getting wildcarded. If they are, we are probably behind a DNS server that is useless: change our exit policy to reject *:*.
Nick Mathewson [Sun, 24 Dec 2006 06:50:57 +0000 (06:50 +0000)]
r11706@Kushana: nickm | 2006-12-24 01:50:52 -0500
Fix 2 bugs in last patch. (VS has weird ideas about const, and I have weird ideas about block structure.)
Nick Mathewson [Sun, 24 Dec 2006 06:32:24 +0000 (06:32 +0000)]
r11702@Kushana: nickm | 2006-12-24 01:31:59 -0500
Patch from Edmanm, slightly modified. Original change list:
- Support running the Tor service with a torrc not in the
same directory as tor.exe (Bug #356) and default to using the torrc
located in the %appdata%\Tor\ of the user who installed the service
- Removed the supposedly misleading error message mentioned in Bug #294
- Fixed some CloseHandle()s that should've been CloseServiceHandle()s
- Fixed some nt_service_foo() return values to be consistent
- Resolved some nt_service_foo() DOCDOCs
- Fixed one trivial typo that I happened to randomly notice
Changes:
- Make more comments into "imperative" house style.
- Remove special handling for "-f"; only use --options.
- Quote all options.
- Clean up whitespace
Nick Mathewson [Sun, 24 Dec 2006 04:09:48 +0000 (04:09 +0000)]
r11694@Kushana: nickm | 2006-12-23 23:09:20 -0500
Add a version entry to networkstatus documents; have this entry get parsed and used to calculate whether begin_dir is supported.
Nick Mathewson [Sun, 24 Dec 2006 02:45:35 +0000 (02:45 +0000)]
r11677@Kushana: nickm | 2006-12-23 21:17:54 -0500
Track when we get 503s from directory servers. Do not use directory servers that have given us a 503 until either an hour has passed, or we are are out of non-busy servers.
Nick Mathewson [Sun, 24 Dec 2006 02:45:27 +0000 (02:45 +0000)]
r11676@Kushana: nickm | 2006-12-23 20:42:17 -0500
Add an orport option to dirserver lines so that clients can tell where to connect to open an encrypted tunnel to a dirserver even before they have its descriptor.
Nick Mathewson [Thu, 21 Dec 2006 17:38:15 +0000 (17:38 +0000)]
r11670@Kushana: nickm | 2006-12-21 12:23:55 -0500
Clean up logic in parse_port_range(); accept 0 on low end and 65536 on high end for people who are bad at math.
Nick Mathewson [Thu, 21 Dec 2006 03:22:59 +0000 (03:22 +0000)]
r11668@Kushana: nickm | 2006-12-20 22:22:53 -0500
Fix bug found by Keith Skinner: Treat malformed max-ports in address ranges as an error, and dont ignore errors with min-ports even if a max-port is present.