Nick Mathewson
161b85d588
r15781@catbus: nickm | 2007-10-15 10:59:26 -0400
...
Make discard_old_votes part of the consensus publishing process, so we conform to spec, and so we avoid a weird bugs where publishing sets the consensus, setting the consensus makes us reschedule, and rescheduling makes us delay vote-discarding.
svn:r11944
2007-10-15 14:59:48 +00:00
Nick Mathewson
c8ad4f58ee
r15780@catbus: nickm | 2007-10-15 10:35:16 -0400
...
Fix the implementation of "download votes by digest".
svn:r11943
2007-10-15 14:59:44 +00:00
Nick Mathewson
09dfe31ff4
r15750@catbus: nickm | 2007-10-13 20:06:47 -0400
...
Eventually delete the obsolete cached-routers and cached-routers.new files, so they don't sit around on disk forever.
svn:r11918
2007-10-14 00:13:06 +00:00
Nick Mathewson
1b45314775
r15749@catbus: nickm | 2007-10-13 20:06:06 -0400
...
Remove support for long-obsolete bw_accounting file.
svn:r11917
2007-10-14 00:13:04 +00:00
Roger Dingledine
39902e93f7
Stop publishing a new server descriptor just because we HUP or
...
when we find our DirPort to be reachable but won't actually publish
it. Extra descriptors without any real changes are dropped by the
authorities, and can screw up our "publish every 18 hours" schedule.
svn:r11915
2007-10-13 22:31:35 +00:00
Roger Dingledine
d9ba4d3e8b
note a bug in directories_have_accepted_server_descriptor() pointed
...
out by weasel
svn:r11914
2007-10-13 22:01:24 +00:00
Roger Dingledine
e269feea77
stop handling 403 responses from directory authorities/mirrors. we
...
haven't issued those in years.
svn:r11913
2007-10-13 21:57:02 +00:00
Nick Mathewson
29fc92ef86
r15732@catbus: nickm | 2007-10-12 17:28:24 -0400
...
Start roughing out the functions that we'll use to replace the old ugly v2 networkstatus manipulation code".
svn:r11904
2007-10-12 21:33:39 +00:00
Nick Mathewson
783402f63a
r15731@catbus: nickm | 2007-10-12 17:27:48 -0400
...
Move "sort a list of routerinfo_t" into its own function in routerlist.c
svn:r11903
2007-10-12 21:33:37 +00:00
Nick Mathewson
a009014eb3
r15730@catbus: nickm | 2007-10-12 16:47:47 -0400
...
Note a way to make routerlist_remove_old_routrs get called way less.
svn:r11902
2007-10-12 21:33:35 +00:00
Nick Mathewson
de08405bdb
r15721@catbus: nickm | 2007-10-12 13:30:48 -0400
...
Base vote timing only on a currently live consensus.
svn:r11896
2007-10-12 17:43:09 +00:00
Nick Mathewson
8fdfdc5bbb
r15719@catbus: nickm | 2007-10-12 13:07:45 -0400
...
Add the routers in the latest consensus to the list of routers to retain when removing old ones.
svn:r11895
2007-10-12 17:13:09 +00:00
Roger Dingledine
b60e138586
fix two instances of double-frees. may fix bug 527.
...
svn:r11893
2007-10-12 09:09:46 +00:00
Roger Dingledine
3977ccbc80
Controllers should now specify cache=no or cache=yes when using
...
the +POSTDESCRIPTOR command.
svn:r11892
2007-10-12 07:57:29 +00:00
Roger Dingledine
ad8757fbeb
Disable the SETROUTERPURPOSE controller command: it is now obsolete.
...
svn:r11891
2007-10-11 22:19:47 +00:00
Roger Dingledine
5c4a00e796
minor cleanups
...
svn:r11890
2007-10-11 22:19:18 +00:00
Roger Dingledine
3d9bf8c912
note a design flaw that i should fix somehow
...
svn:r11889
2007-10-11 22:16:05 +00:00
Nick Mathewson
3100712c34
r15703@catbus: nickm | 2007-10-11 17:30:34 -0400
...
Fix for the reported case of bug 438: check families as well as identities in circuit_find_to_cannibalize(). Code audit still pending. ;)
svn:r11886
2007-10-11 21:40:35 +00:00
Nick Mathewson
b62d379f92
r15689@catbus: nickm | 2007-10-11 16:40:25 -0400
...
Fix bug 451. This was a nasty bug, so let's fix it twice: first, by banning recursive calls to connection_handle_write from connection_flushed_some; and second, by not calling connection_finished_flushing() on a closed connection. Backport candidate.
svn:r11882
2007-10-11 20:45:26 +00:00
Nick Mathewson
ff2820c1ba
r14892@Kushana: nickm | 2007-10-11 14:00:33 -0400
...
Fix a bunch of XXX020s: treat some 403s as INFO severity; remove some dead code; share the retry path for consensus routerdescs that are also listed in the v2 networkstatus; check even more aspects of votes when parsing them.
svn:r11871
2007-10-11 18:01:12 +00:00
Nick Mathewson
007d76543d
r14887@Kushana: nickm | 2007-10-11 11:19:39 -0400
...
Fix some XXX020s in dirserv.c
svn:r11870
2007-10-11 16:06:51 +00:00
Nick Mathewson
52ca3a7610
r14886@Kushana: nickm | 2007-10-11 11:02:53 -0400
...
Move prototypes around in or.h so that the functions from routerlist.c which moved to networkstatus.c are all grouped in the right section.
svn:r11869
2007-10-11 16:06:47 +00:00
Nick Mathewson
6670122619
r14885@Kushana: nickm | 2007-10-11 10:36:16 -0400
...
Document minimal values for voting times. Use a macro instead of a magic number. Remove an "enforce this" xxxx020 that was already enforced.
svn:r11868
2007-10-11 16:06:42 +00:00
Nick Mathewson
0a1dd92d3e
r14884@Kushana: nickm | 2007-10-11 10:30:58 -0400
...
More fixes for cacheing bridge descs:Remove obsolete EXTRAINFO_PURPOSE_GENERAL; remove purpose argument from signed_desc_append_to_journal.
svn:r11867
2007-10-11 16:06:37 +00:00
Nick Mathewson
9a56b17c54
r15679@catbus: nickm | 2007-10-11 09:51:33 -0400
...
Remove code to generate v1 directories.
svn:r11866
2007-10-11 13:56:33 +00:00
Roger Dingledine
541aa72155
Bugfix on r11138:
...
Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
command. Bugfix on 0.2.0.5-alpha.
Backport candidate.
svn:r11864
2007-10-11 03:27:47 +00:00
Roger Dingledine
900ddcb8fd
bugfix on r11298:
...
Fix a minor memory leak whenever we parse guards from our state
file. Bugfix on 0.2.0.7-alpha.
svn:r11862
2007-10-11 02:03:53 +00:00
Nick Mathewson
487f985f5b
r15670@catbus: nickm | 2007-10-10 20:08:14 -0400
...
Restore a removed assert.
svn:r11861
2007-10-11 00:13:06 +00:00
Nick Mathewson
a718fcb1c0
r15663@catbus: nickm | 2007-10-10 16:35:58 -0400
...
Resolve some more voting-related XXXXs.
svn:r11860
2007-10-11 00:13:03 +00:00
Nick Mathewson
0452a965da
r15662@catbus: nickm | 2007-10-10 16:27:58 -0400
...
Removee a misleading log message.
svn:r11859
2007-10-11 00:13:00 +00:00
Roger Dingledine
8e8d2defe3
bugfix on r11480:
...
Stop calling tor_strlower() on uninitialized memory in some cases.
svn:r11858
2007-10-10 23:44:10 +00:00
Roger Dingledine
dd920354c2
let bridge authorities write bridge descriptors to their
...
cached-descriptors* files.
nick, did i get this right?
svn:r11855
2007-10-10 23:11:53 +00:00
Roger Dingledine
919f421c6c
get rid of the spurious "Freeing linked %s connection" complaints.
...
they happen whenever we fail to establish a connection.
svn:r11854
2007-10-10 22:59:34 +00:00
Nick Mathewson
17f3d2807d
r15660@catbus: nickm | 2007-10-10 16:25:09 -0400
...
Fix compilation on last patch.
svn:r11853
2007-10-10 20:29:52 +00:00
Nick Mathewson
dace37aee8
r15656@catbus: nickm | 2007-10-10 16:23:18 -0400
...
Fix the implementation of if-modified-since for certificates so that it applies to all types of certificate requests. Note that the kind of consensus that matters already has a working if-modified-since.
svn:r11852
2007-10-10 20:28:01 +00:00
Roger Dingledine
d9a99b9ba6
get r11842 closer to what i want
...
svn:r11851
2007-10-10 20:13:52 +00:00
Nick Mathewson
976c8f8a71
r15646@catbus: nickm | 2007-10-10 16:01:54 -0400
...
Fix some memory leaks when serving v3 networkstatus documents and v3 certs. Generate 503 correctly when serving v3 networkstatus documents and v3 certs.
svn:r11850
2007-10-10 20:06:38 +00:00
Roger Dingledine
f6b25613b8
Tweak the implementation of proposal 109 slightly: allow at most
...
two Tor servers on the same IP address, except if it's the location
of a directory authority, in which case allow five.
svn:r11842
2007-10-10 19:53:08 +00:00
Nick Mathewson
55520a2d95
r15636@catbus: nickm | 2007-10-10 15:28:12 -0400
...
Retry consensus and certificate downloads properly. Do not fail when there are no certificates to download. Do not download certificates we already have when retrying.
svn:r11841
2007-10-10 19:33:19 +00:00
Nick Mathewson
f05685a8eb
r15635@catbus: nickm | 2007-10-10 15:27:07 -0400
...
Remove extraneous whitespace
svn:r11840
2007-10-10 19:33:14 +00:00
Nick Mathewson
b5301d81db
r15634@catbus: nickm | 2007-10-10 14:26:49 -0400
...
Resolve/ignore some XXXXs, and be even more careful about listing a server as a v3 authority.
svn:r11839
2007-10-10 19:33:11 +00:00
Nick Mathewson
b599d4264f
r15633@catbus: nickm | 2007-10-10 14:16:54 -0400
...
Fix a spelling mistake.
svn:r11838
2007-10-10 19:33:06 +00:00
Nick Mathewson
45b987d891
r15632@catbus: nickm | 2007-10-10 13:48:44 -0400
...
Merge networkstatus_add_signatures_impl into the only function that calls it.
svn:r11837
2007-10-10 19:33:01 +00:00
Nick Mathewson
daf4c11f1a
r15630@catbus: nickm | 2007-10-10 13:39:44 -0400
...
Save weighted-fractional-uptime to disk as well as MTBF. Bump the version on rouer-stability: downgrading to versions earlier than this one will lose your WFU data.
svn:r11835
2007-10-10 17:48:58 +00:00
Peter Palfrader
1a94e84661
Say "using socksX _to_ port y" instead of "socksX _on_ port y". it confuses weasel less
...
svn:r11834
2007-10-10 15:44:34 +00:00
Nick Mathewson
9ed39643fa
r15626@catbus: nickm | 2007-10-10 11:02:32 -0400
...
Resolve bug 516: Never report our bandwidth-history as over RelayBandwidthRate*NUM_SECS_BW_SUM_INTERVAL.
svn:r11833
2007-10-10 15:07:19 +00:00
Nick Mathewson
cb0dbbcfa5
r15621@catbus: nickm | 2007-10-10 00:37:25 -0400
...
Turns out, Bug 463 was just another "warn about something that is no big deal" thing. Downgrade, comment, and resolve.
svn:r11829
2007-10-10 04:37:38 +00:00
Nick Mathewson
1f4eafdb91
r15619@catbus: nickm | 2007-10-10 00:23:45 -0400
...
Fix bug 483: downgrade a harmless "Hey your accept() implementation sucks" warning to an info.
svn:r11828
2007-10-10 04:24:02 +00:00
Nick Mathewson
72f352880c
r15608@catbus: nickm | 2007-10-09 19:01:50 -0400
...
Give better messages and return values from signature uploads and downlaods; also, log actual errors when we screw up.
svn:r11823
2007-10-09 23:02:02 +00:00
Roger Dingledine
4f23045e58
back out a little bit of r11817 to preserve current behavior.
...
some other behavior changes left in.
svn:r11821
2007-10-09 21:12:48 +00:00
Roger Dingledine
a5851939c0
i heard that users know the phrase 'system clock' better than 'clock'. hm.
...
svn:r11820
2007-10-09 21:11:16 +00:00
Nick Mathewson
97fa3fdf16
r15599@catbus: nickm | 2007-10-09 16:44:36 -0400
...
Fix the bug that was making moria1 set valid-after wrong in its votes: we were looking at the preferred timing when we should have been looking at the consensus timing.
svn:r11818
2007-10-09 20:44:51 +00:00
Nick Mathewson
8b71a76dd3
r15598@catbus: nickm | 2007-10-09 16:37:35 -0400
...
Turn all "Is DirPort nonzero? Because if it is, we must be a directory" logic into calls to dirserver_mode().
svn:r11817
2007-10-09 20:44:47 +00:00
Nick Mathewson
010fd50c36
r15597@catbus: nickm | 2007-10-09 16:17:42 -0400
...
Make authority_certs_fetch_missing only fetch certificates which we are not currently downloading; fix XXXX020s in networkstatus.c
svn:r11816
2007-10-09 20:44:45 +00:00
Nick Mathewson
0827d6f217
r15593@catbus: nickm | 2007-10-09 15:31:10 -0400
...
Fix an infinite loop when parsing multiple votes.
svn:r11813
2007-10-09 19:31:14 +00:00
Nick Mathewson
a2005cd2c1
r15590@catbus: nickm | 2007-10-09 15:14:42 -0400
...
Change dirvote_get_vote to take named flags rather than 3 boolean inputs. Fix a bug that was caused by the order of the boolean inputs in or.h not matching the order of boolean inputs in dirvote.c.
svn:r11812
2007-10-09 19:14:48 +00:00
Nick Mathewson
40b6a66c89
r15589@catbus: nickm | 2007-10-09 15:08:00 -0400
...
Fix dumb typo in vote retrieval: we want to check the pending votes to see what we are missing; not the previous period.
svn:r11811
2007-10-09 19:14:46 +00:00
Nick Mathewson
a3d4c47515
r15587@catbus: nickm | 2007-10-09 15:05:27 -0400
...
When parsing two concatenated networkstatuses (as we do when voting), detect the end of the first one properly.
svn:r11810
2007-10-09 19:05:38 +00:00
Roger Dingledine
c9f2afd5fa
make r11808 build on my 64-bit
...
svn:r11809
2007-10-09 18:43:05 +00:00
Nick Mathewson
23614f9523
r15581@catbus: nickm | 2007-10-09 14:36:47 -0400
...
Recompute voting schedule whenever a consensus is set.
svn:r11808
2007-10-09 18:36:56 +00:00
Nick Mathewson
f1d4e3477b
Bugfixes in fetching certificates for a consensus: fetch tor/keys/fp/X, not tor/keys/X. Also, count signatures where no certificate is known as "missing a certificate" not as "unknown authority."
...
svn:r11805
2007-10-09 17:40:23 +00:00
Nick Mathewson
c7981e669f
r15574@catbus: nickm | 2007-10-09 13:01:53 -0400
...
Fix the "400 OK" issue when replying to a vote.
svn:r11801
2007-10-09 17:07:13 +00:00
Nick Mathewson
5346a01796
r14813@Kushana: nickm | 2007-10-09 11:10:48 -0400
...
Use download_status_t for v2 networkstatuses and certs as well as for routers. Make functions to manipulate it. Next steps: use it for consensus networkstatuses, and get consensus download rescheduling working.
svn:r11800
2007-10-09 15:27:45 +00:00
Nick Mathewson
bb9cc4fb29
r14812@Kushana: nickm | 2007-10-09 10:22:00 -0400
...
Merge extra fields in local_routerstatus_t back into routerstatus_t. See changelog for rationale.
svn:r11799
2007-10-09 15:27:15 +00:00
Roger Dingledine
11a782a6c3
for once, it was "no-tab man" that struck again.
...
svn:r11793
2007-10-08 21:28:23 +00:00
Nick Mathewson
18ec603861
r14802@Kushana: nickm | 2007-10-08 17:21:30 -0400
...
Refactor out about a third of routerlist.c into a new networkstatus.c. I\m not sure that I got everything that needed to move, but so far so good.
svn:r11791
2007-10-08 21:21:50 +00:00
Nick Mathewson
13f7f98ad2
r14799@Kushana: nickm | 2007-10-08 15:55:18 -0400
...
Add code to download router descriptors listed in a v3 networkstatus consensus.
svn:r11790
2007-10-08 19:56:57 +00:00
Nick Mathewson
84d7677a8a
r14770@Kushana: nickm | 2007-10-08 11:43:02 -0400
...
Make router_digest_is_trusted_dir able to check for type. When looking for a V3 directory, only assume that the V3 authorities and caches have it: previous code assumed that all authorities had it.
svn:r11789
2007-10-08 17:44:19 +00:00
Nick Mathewson
3f6e3ce61b
r14769@Kushana: nickm | 2007-10-07 14:00:17 -0400
...
Fetch networkstatus consensus documents as needed. Disabled for clients until more caches support it.
svn:r11788
2007-10-08 17:44:09 +00:00
Nick Mathewson
6f7847b378
r15530@catbus: nickm | 2007-10-04 12:16:27 -0400
...
Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke.
svn:r11761
2007-10-04 16:21:58 +00:00
Nick Mathewson
8439c4ec2f
r15512@catbus: nickm | 2007-10-02 16:27:43 -0400
...
Make some functions static; remove some dead code.
svn:r11750
2007-10-02 20:35:23 +00:00
Nick Mathewson
f4f780b526
r15510@catbus: nickm | 2007-10-02 16:14:42 -0400
...
Add support for more vote URLs that weasel wanted. Weasel: please test this before I inflict it on anybody else. :)
svn:r11749
2007-10-02 20:19:43 +00:00
Nick Mathewson
439fe55c6b
r15436@catbus: nickm | 2007-10-01 21:17:27 -0400
...
Fix disgusting O(n^2) behavior in router_parse_list_from_string. Noticed by Li-Hui Zhou; found with oprofile.
svn:r11738
2007-10-02 01:22:42 +00:00
Nick Mathewson
b5c8a8ae53
r15422@catbus: nickm | 2007-09-27 16:42:35 -0400
...
Use descriptor annotations to record the source, download t time, and purpose of every descriptor we add to the store. The remaining to-do item is to stop setting do_not_cache on bridges.
svn:r11680
2007-09-27 20:46:30 +00:00
Nick Mathewson
2050b31bb9
r15421@catbus: nickm | 2007-09-27 15:44:17 -0400
...
When we are a bridge directory, add bridges with purpose BRIDGE, not with purpose CONTROLLER. Roger, is this right?
svn:r11679
2007-09-27 20:46:28 +00:00
Nick Mathewson
60efd6b726
r15420@catbus: nickm | 2007-09-27 15:40:25 -0400
...
Remove annotated_desc_store store (which we never used). Instead, shift name of router store to cached-descriptors, but initialize it from cached-routers as needed
svn:r11678
2007-09-27 20:46:24 +00:00
Nick Mathewson
a1c5a807d0
r15418@catbus: nickm | 2007-09-27 12:37:59 -0400
...
Fix a stupid logic error in authority_cert_get_by_sk_digest: the presence of an authority lacking a v3 cert does not mean that subsequent authorities lack them too.
svn:r11668
2007-09-27 16:41:42 +00:00
Nick Mathewson
28946069ee
r15412@catbus: nickm | 2007-09-27 12:04:24 -0400
...
More annotated-store work: handle annotations in lists correctly. Add ability to prepend annotations to a routerdesc (and to every rtouredesc in a list), while verifying that the routerdesc is not already annotated.
svn:r11665
2007-09-27 16:08:10 +00:00
Roger Dingledine
ea47287575
minor typo
...
svn:r11658
2007-09-27 05:20:26 +00:00
Nick Mathewson
034524f4b7
r15400@catbus: nickm | 2007-09-26 12:13:12 -0400
...
Backend for descriptor annotations: parse annotations as keywords; only allow them to appear in the cache; do not serve them as part of the descriptor if we are a dirserver. Still need mechanism to set annotations. Still need to rename cache file.
svn:r11654
2007-09-26 16:19:44 +00:00
Nick Mathewson
95d97c722a
r15371@catbus: nickm | 2007-09-25 19:53:13 -0400
...
Always set status_out when adding a vote.
svn:r11646
2007-09-25 23:57:12 +00:00
Nick Mathewson
4d44bf1edc
r15367@catbus: nickm | 2007-09-25 19:31:11 -0400
...
It is amazing how reliable missing svk st are at breaking code.
svn:r11644
2007-09-25 23:35:28 +00:00
Nick Mathewson
ad11e9d0f1
r15310@catbus: nickm | 2007-09-24 11:36:08 -0400
...
Patch from Robert Hogan: fix a couple of status-event related typos. Backport candidate.
svn:r11604
2007-09-24 15:41:20 +00:00
Nick Mathewson
921f9f774d
r15279@catbus: nickm | 2007-09-22 02:00:06 -0400
...
V3 authority work: fetch missing votes and/or signatures as needed.
svn:r11575
2007-09-22 06:06:05 +00:00
Roger Dingledine
b40230f45b
note another bug i'd like to fix
...
svn:r11571
2007-09-22 00:05:46 +00:00
Roger Dingledine
523ac934de
make directories_have_accepted_server_descriptor() able to
...
handle non-default values of PublishServerDescriptor.
svn:r11569
2007-09-21 22:14:39 +00:00
Roger Dingledine
41f3d0eb27
only mess with 'state' in init_keys if we're planning to actually
...
run tor. this resolves a segfault in 'tor --list-fingerprints'
introduced by r11437.
backport candidate due to r11438.
svn:r11566
2007-09-21 21:52:31 +00:00
Nick Mathewson
65cf389998
r15253@catbus: nickm | 2007-09-21 15:03:51 -0400
...
Oops; we had vote_delay and dist_delay switched when computing when to generate our consensus. Harmless so far, but let's get that fixed.
svn:r11558
2007-09-21 19:11:52 +00:00
Roger Dingledine
193a144c9f
Make "UpdateBridgesFromAuthority" torrc option work: when bridge
...
users configure that and specify a bridge with an identity
fingerprint, now they will lookup the bridge descriptor at the
default bridge authority via a one-hop tunnel, but once circuits
are established they will switch to a three-hop tunnel for later
connections to the bridge authority.
svn:r11550
2007-09-21 06:14:36 +00:00
Nick Mathewson
fdf390525c
r15233@catbus: nickm | 2007-09-20 18:58:23 -0400
...
19:00 < weasel> Sep 21 01:00:01.926 [warn] Consensus published.
19:00 < weasel> hah
19:00 < nickm> ha indeed
19:00 < nickm> a winner is me
19:00 < weasel> _warn_ :)
19:01 < nickm> watch out! It could go off at any moment!
19:01 * weasel backs away
svn:r11546
2007-09-20 23:02:13 +00:00
Roger Dingledine
90d1345d90
bugfix on r11110:
...
Fix a bug that made servers send a "404 Not found" in response to
attempts to fetch their server descriptor. This caused Tor servers
to take many minutes to establish reachability for their DirPort,
and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
svn:r11545
2007-09-20 22:08:40 +00:00
Peter Palfrader
3b776b865e
Minor whitespace fix
...
svn:r11543
2007-09-20 21:46:10 +00:00
Peter Palfrader
b16224c311
add a v3 authority
...
svn:r11542
2007-09-20 21:36:56 +00:00
Nick Mathewson
fc5dd0cdbb
r15231@catbus: nickm | 2007-09-20 16:04:30 -0400
...
Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv.
svn:r11538
2007-09-20 20:08:47 +00:00
Roger Dingledine
088c4cd8ce
it works better when it compiles
...
svn:r11531
2007-09-20 04:54:50 +00:00
Roger Dingledine
0914883339
Resume listing "AUTHORITY" flag for authorities in network status.
...
Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
svn:r11530
2007-09-20 04:37:17 +00:00
Nick Mathewson
5e81b0ecb8
r15170@catbus: nickm | 2007-09-19 11:41:50 -0400
...
Carry a new evdns function over from libevent: do not rely on compile-time code to set the transaction ID correctly. This will be important when we finally drop our internal copy of eventdns.c
svn:r11517
2007-09-19 15:53:36 +00:00
Nick Mathewson
faeedbb8af
r15167@catbus: nickm | 2007-09-19 11:19:08 -0400
...
Fix unit tests for rendezvous descriptor parsing.
svn:r11516
2007-09-19 15:53:33 +00:00
Roger Dingledine
53f57dd7c0
Set up moria1 as the first v3 directory authority.
...
svn:r11506
2007-09-19 03:22:01 +00:00
Roger Dingledine
a1e923c50d
right before publishing our service descriptor, we were
...
rewriting the hexdigest back to an ambiguous nickname.
if this patches it, we should write a changelog and then
backport.
svn:r11500
2007-09-19 00:30:19 +00:00
Roger Dingledine
2a2cee9e51
Start using the v2 intro format for hidden service connections. Now
...
clients specify their chosen rendezvous point by identity digest
rather than by (potentially ambiguous) nickname. This change could
speed up hidden service connections dramatically.
svn:r11499
2007-09-18 23:48:39 +00:00
Roger Dingledine
82da6c02ba
clean up r11496
...
svn:r11498
2007-09-18 23:34:27 +00:00
Roger Dingledine
eb9dc12ce9
Drop support for v1 rendezvous descriptors, since we never used
...
them anyway, and the code has probably rotted by now. Based on
patch from Karsten Loesing.
svn:r11496
2007-09-18 21:17:45 +00:00
Roger Dingledine
f15a4c8bd7
add some crypto/util functions from karsten, as the first
...
step of integrating his new hidden service stuff
svn:r11489
2007-09-18 17:07:56 +00:00
Nick Mathewson
f45dec1690
r15143@catbus: nickm | 2007-09-18 11:49:46 -0400
...
Add getinfo status/good-server-descriptor and status/reachability-succeeded. Patch from Robert Hogan.
svn:r11483
2007-09-18 15:53:55 +00:00
Nick Mathewson
a2b76befff
r15142@catbus: nickm | 2007-09-18 11:43:32 -0400
...
Split "Have all the authorities accepted our server descriptor?" into its own function. Patch from Robert Hogan.
svn:r11482
2007-09-18 15:53:53 +00:00
Nick Mathewson
eee8d750b6
r15140@catbus: nickm | 2007-09-18 11:34:54 -0400
...
Get rid of a needless malloc() when parsing address policies. Original patch from "Some guy on #tor", via arma. Altered to have a sufficiently large buffer, and not use the buffer so much, and to save a strlcpy.
svn:r11480
2007-09-18 15:38:00 +00:00
Roger Dingledine
8f75defd33
Servers used to decline to publish their DirPort if their
...
BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
were below a threshold. Now they only look at BandwidthRate and
RelayBandwidthRate.
svn:r11465
2007-09-17 22:22:05 +00:00
Roger Dingledine
ffce9d3368
trivial doxygen thing
...
svn:r11463
2007-09-17 21:59:07 +00:00
Nick Mathewson
8c13967803
r14448@Kushana: nickm | 2007-09-17 14:26:56 -0400
...
Unify all of the divergent median/nth-percentile code in container.[ch]
svn:r11457
2007-09-17 18:27:49 +00:00
Nick Mathewson
93d4ad9743
r14447@Kushana: nickm | 2007-09-17 13:31:50 -0400
...
Track weighted fractional uptime in addition to weighted mtbf: we want to use mtbf for stable, but fractional uptime for guard.
svn:r11456
2007-09-17 18:27:43 +00:00
Nick Mathewson
076b27aff8
r15077@catbus: nickm | 2007-09-15 14:04:19 -0400
...
Oops; make Makefile.am work on mingw again.
svn:r11445
2007-09-15 18:06:23 +00:00
Nick Mathewson
1dbe726f04
r15068@catbus: nickm | 2007-09-14 15:25:02 -0400
...
Fix a couple typos in control.c; spotted by Robert Hogan.
svn:r11440
2007-09-14 19:27:04 +00:00
Nick Mathewson
5fcc48d389
r14425@Kushana: nickm | 2007-09-13 13:00:57 -0400
...
Do not load state when options->command is not RUN_TOR. (Resolves bug 499; backport candidate)
svn:r11437
2007-09-13 17:01:08 +00:00
Nick Mathewson
9b1ad0074b
r14392@Kushana: nickm | 2007-09-12 11:04:20 -0400
...
Complete implementation of proposal 104: remove bandwidth history lines from router descriptors.
svn:r11434
2007-09-12 17:33:23 +00:00
Nick Mathewson
71a56aa895
r14391@Kushana: nickm | 2007-09-12 10:56:17 -0400
...
Remove some needless complexity from the code to add signatures to a consensus: previously, we had a path to add new signatures, and a second path to replace signatures. But the second path sufficed as a common case, and the code isn't invoked nearly enough to justify the optimization of having the first path.
svn:r11433
2007-09-12 17:33:18 +00:00
Nick Mathewson
1647a5764a
r15056@catbus: nickm | 2007-09-12 13:15:19 -0400
...
Try to fix an automake problem by renaming a variable.
svn:r11432
2007-09-12 17:17:03 +00:00
Nick Mathewson
e73fb2f102
r15049@catbus: nickm | 2007-09-11 16:05:50 -0400
...
When we get a consensus for which we are missing the right certificates, keep it around pending more certificates; do not just drop it.
svn:r11430
2007-09-11 20:17:28 +00:00
Nick Mathewson
4de4f53abd
r15048@catbus: nickm | 2007-09-11 14:20:39 -0400
...
Add code to warn about mauthorities on a consensus when they are not what we expect to find.
svn:r11429
2007-09-11 20:17:25 +00:00
Nick Mathewson
749da8e0e9
r15047@catbus: nickm | 2007-09-11 13:40:54 -0400
...
Fix a memory leak when reloading v3 authority certificate and keys.
svn:r11428
2007-09-11 20:17:24 +00:00
Nick Mathewson
973502d290
r15046@catbus: nickm | 2007-09-11 13:38:36 -0400
...
Check V3 authority certificates for expiry, and warn the authority op as they get old.
svn:r11427
2007-09-11 20:17:22 +00:00
Nick Mathewson
3c7652ccdb
r15045@catbus: nickm | 2007-09-11 11:52:29 -0400
...
Reject incoming votes when the valid-after time does not match the period that we're trying to vote for.
svn:r11426
2007-09-11 20:17:20 +00:00
Nick Mathewson
c0130f9611
r15022@catbus: nickm | 2007-09-10 10:31:54 -0400
...
remove yet more pointless differences between our eventdns.c and the evdns.c in libevent.
svn:r11425
2007-09-11 20:17:18 +00:00
Nick Mathewson
5828e4d5c4
r15020@catbus: nickm | 2007-09-10 10:22:31 -0400
...
remove more pointless differences between our eventdns.c and the evdns.c in libevent.
svn:r11416
2007-09-10 14:23:26 +00:00
Nick Mathewson
13b65c4129
r15018@catbus: nickm | 2007-09-10 10:04:16 -0400
...
Change comments in eventdns.c to C-style, so we can more easily diff it against the version in libevent to reconcile them (again).
svn:r11415
2007-09-10 14:05:12 +00:00
Nick Mathewson
a04e584cbc
r15005@catbus: nickm | 2007-09-10 09:49:03 -0400
...
Undo brokenness from merge conflict.
svn:r11414
2007-09-10 13:50:00 +00:00
Nick Mathewson
615d19fe4c
r15001@catbus: nickm | 2007-09-10 09:44:49 -0400
...
Fix a couple of memory leaks in eventdns.c; found by niels. Not backport candidates, since they only affect DNSPort users.
svn:r11413
2007-09-10 13:48:01 +00:00
Nick Mathewson
6744ebe7b5
svn:r11412
2007-09-10 13:47:56 +00:00
Nick Mathewson
565f5f32c5
r14363@Kushana: nickm | 2007-09-08 16:25:45 -0400
...
Another round of whitespeace fixes.
svn:r11407
2007-09-08 20:25:57 +00:00
Nick Mathewson
eb3f24f027
r14358@Kushana: nickm | 2007-09-08 13:45:16 -0400
...
Implement certificate fetch functions.
svn:r11405
2007-09-08 19:08:39 +00:00
Nick Mathewson
1c8bd05c70
Fix compilation of ntmain.c.
...
svn:r11395
2007-09-06 18:19:09 +00:00
Nick Mathewson
4c4280e249
Make sure that even dumb compilers can tell that bad_cookie and bad_password are set before use.
...
svn:r11390
2007-09-06 18:04:28 +00:00
Nick Mathewson
f17a38ab04
r14940@catbus: nickm | 2007-09-06 13:22:26 -0400
...
Move NT services code into its own C file. Probably will not build happily on win32 yet; more hacking needed.
svn:r11388
2007-09-06 17:42:05 +00:00
Andrew Lewman
c5b4f779ec
Fixed misspelling of "connection" caught by kate.
...
svn:r11382
2007-09-06 00:36:53 +00:00
Nick Mathewson
d57c1c5c56
r14328@Kushana: nickm | 2007-09-04 20:17:34 -0400
...
There is no good reason to make hashedcontrolpassword and cookieauthentication mutually exclusive. So let's not.
svn:r11377
2007-09-05 00:31:07 +00:00
Nick Mathewson
7c47856c9e
r14327@Kushana: nickm | 2007-09-04 20:06:04 -0400
...
Better comment in dnsserv.c
svn:r11376
2007-09-05 00:31:01 +00:00
Nick Mathewson
eca3634f62
r14294@Kushana: nickm | 2007-09-01 13:50:03 -0400
...
Oops. Initialize "changed" variable when removing obsolete guards.
svn:r11346
2007-09-01 17:50:29 +00:00
Nick Mathewson
c967fae598
r14880@catbus: nickm | 2007-08-31 11:06:10 -0400
...
Refactor store_stats_t to hold a pointer to the proper mmap, and turn it into a full-fledged type. This sets stuff up nicely for adding a separate "annotated" store. Add some XXXX NM items that need to be fixed when annotated stores exist
svn:r11338
2007-08-31 15:08:37 +00:00
Nick Mathewson
2ff871e530
r14871@catbus: nickm | 2007-08-31 10:12:53 -0400
...
Check correct circuit type when calling functions from rend_process_relay_cell. Backport candidate.
svn:r11336
2007-08-31 14:20:44 +00:00
Nick Mathewson
5da6321b76
r14859@catbus: nickm | 2007-08-30 17:10:15 -0400
...
0-pad minutes and seconds when displaying weighted mtbf in info logs.
svn:r11324
2007-08-30 21:12:34 +00:00
Nick Mathewson
c8e379a4cd
r14259@Kushana: nickm | 2007-08-30 02:33:55 -0400
...
Teach tor about more libevent versions. Be more clear that "Known bugs" means "it will crash or something." Most significantly, stop issuing dire warnings every time we run with kqueue on os x: it seems to have worked for a while now.
svn:r11314
2007-08-30 06:34:17 +00:00
Nick Mathewson
f189ecbf20
r14832@catbus: nickm | 2007-08-29 15:00:27 -0400
...
Use (and debug) new file-writing functions in order to simplify code that formerly built big strings in RAM.
svn:r11301
2007-08-29 19:02:43 +00:00
Nick Mathewson
91f83cfc2d
r14830@catbus: nickm | 2007-08-29 13:50:10 -0400
...
Make controllers accept LF as well as CRLF. Update spec to reflect this. Remove now-dead code. Make controller warning about v0 protocol more accurate.
svn:r11299
2007-08-29 19:02:33 +00:00
Nick Mathewson
4266039c19
r14826@catbus: nickm | 2007-08-29 13:19:55 -0400
...
Add a line to the state file for each guard to let us know which version added the guard. If the line is absent, assume the guard was added by whatever version of Tor last wrote the state file. Remove guards if the version that added them was using a bad guard selection algorithm. (Previously, we removed guards if the version that wrote the file was using a bad guard selection algorithm, even if the guards themselves were chosen by a good version.)
svn:r11298
2007-08-29 17:22:00 +00:00
Nick Mathewson
a4cc3e4be1
r14821@catbus: nickm | 2007-08-27 19:57:56 -0400
...
Check for absent nickname when making extend info. I still dont know when this happens, but it is easy enough to check for. Fixes bug 467.
svn:r11293
2007-08-28 00:00:32 +00:00
Nick Mathewson
7cbe302b3f
r14231@Kushana: nickm | 2007-08-27 14:56:14 -0400
...
Most configuration options have the same names in or.h and in torrc. Make the macros reflect this, so that it is easier to fit them onto a line, and so that mismatched options stand out more
svn:r11290
2007-08-27 18:56:20 +00:00
Nick Mathewson
d3224bad42
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
2007-08-27 15:33:58 +00:00
Roger Dingledine
c4ee55ed26
Set up Tonga as the default bridge directory authority.
...
svn:r11276
2007-08-25 22:02:55 +00:00
Roger Dingledine
da1485088c
formatting cleanups
...
svn:r11273
2007-08-25 21:31:34 +00:00
Roger Dingledine
df98447be5
revert the recommended-guard-version thing. it did not do what we
...
want, which is to expire old guards *every* time somebody moves
from an old version to the new one.
also, refine which version numbers count as 'new enough'.
svn:r11272
2007-08-25 20:34:13 +00:00
Nick Mathewson
7efc165095
r14204@Kushana: nickm | 2007-08-24 10:24:36 -0400
...
Fix a bug in last patch; add support for getting extrainfo documents by the control port (since it is silly to tell tools to do it without actually giving them an interface).
svn:r11270
2007-08-24 14:41:15 +00:00
Nick Mathewson
b9d43e2685
r14203@Kushana: nickm | 2007-08-24 10:15:58 -0400
...
Add a hacked-up GETINFO desc/all-recent-extrainfo-hack so that torstat can keep working with a minimum of fuss, until it learns about extrainfo documents.
svn:r11269
2007-08-24 14:41:10 +00:00
Nick Mathewson
cf2ac9b9e1
r14202@Kushana: nickm | 2007-08-24 09:55:30 -0400
...
Add purposes for new things we need to fetch for v3 directory system.
svn:r11268
2007-08-24 14:41:06 +00:00
Nick Mathewson
c3805e753a
r14200@kushana: nickm | 2007-08-24 08:33:41 -0400
...
In new code, let's try to prefer named flags to mazes of twisted boolean arguments, all alike.
svn:r11267
2007-08-24 12:33:53 +00:00
Roger Dingledine
daece599a1
more cleanups on r11258. looks good now.
...
svn:r11266
2007-08-24 10:50:48 +00:00
Roger Dingledine
738ecba367
make the last patch do what i actually want. it was a bit tricky
...
since we want the default guardversion to be 0 (which is what it is
if there's no guardversion line), yet when we're validating a freshly
configed and defaulted state, we don't want to complain.
svn:r11264
2007-08-24 08:12:25 +00:00
Roger Dingledine
9bacf68851
cleanups on r11258
...
svn:r11263
2007-08-24 08:01:47 +00:00
Roger Dingledine
d39c7515d1
patch from mike perry to a) stop overloading guards as much, and
...
b) raise the max-believable-bandwidth to 10MB/s.
svn:r11258
2007-08-24 06:30:34 +00:00
Roger Dingledine
8d524edb83
a single quote != a single double quote. i can't hear the
...
circus music from here, perhaps we should move closer.
svn:r11256
2007-08-23 23:03:32 +00:00
Nick Mathewson
c65131b171
r14185@Kushana: nickm | 2007-08-22 11:07:01 -0400
...
Add some voting-related documentation.
svn:r11255
2007-08-22 15:07:44 +00:00
Nick Mathewson
08e605b4e2
r14184@Kushana: nickm | 2007-08-22 11:06:37 -0400
...
Unmap cached-extrainfo on exit. Fixes bug 484.
svn:r11254
2007-08-22 15:07:29 +00:00
Roger Dingledine
c02fb8997b
backport candidate:
...
Make it possible to read the PROTOCOLINFO response in a way that
conforms to our control-spec. Reported by Matt Edman.
svn:r11251
2007-08-22 07:57:10 +00:00
Roger Dingledine
353abd9830
backport candidate:
...
Stop leaking part of the descriptor when we run into a particularly
unparseable piece of it. Bugfix on 0.1.2.x.
svn:r11249
2007-08-22 03:21:51 +00:00
Roger Dingledine
79066b4851
backport candidate:
...
Fix a minor memory leak when we fail to find enough suitable
servers to choose a circuit. Bugfix on 0.1.2.x.
svn:r11247
2007-08-22 03:03:24 +00:00
Nick Mathewson
7dbe7fd4d8
r14758@catbus: nickm | 2007-08-21 01:36:03 -0400
...
Finish implementing and documenting proposal 108: Authorities now use MTBF data to set their stability flags, once they have at least 4 days of data to use.
svn:r11240
2007-08-21 05:37:24 +00:00
Roger Dingledine
8a21232256
Stop putting the authentication cookie in a file called "0"
...
in your working directory if you don't specify anything for the
new CookieAuthFile option. Reported by Matt Edman.
svn:r11237
2007-08-21 03:11:56 +00:00
Peter Palfrader
c7140372cb
It works better if we don't print a 404 header after our body
...
svn:r11236
2007-08-20 22:40:09 +00:00
Peter Palfrader
6802923fa7
call it EXPORTMALLINFO, not EXPORTMEMINFO
...
svn:r11235
2007-08-20 22:31:39 +00:00
Peter Palfrader
8aceafc0c8
Appease check-spaces
...
svn:r11234
2007-08-20 22:23:22 +00:00
Peter Palfrader
38cbd7263e
We do not mix variable declarations and code
...
svn:r11233
2007-08-20 22:13:14 +00:00
Peter Palfrader
8c3d14cda5
Optionally export mallinfo() output on the DirPort
...
svn:r11232
2007-08-20 22:11:56 +00:00
Peter Palfrader
f99ac7fe52
Remove /tor/dir-all-weaselhack, it's useless without FULL_V1_DIRECTORIES defined
...
svn:r11231
2007-08-20 21:56:33 +00:00
Roger Dingledine
4ff3343e98
Let directory authorities startup even when they can't generate
...
a descriptor immediately, e.g. because they don't know their
address.
svn:r11228
2007-08-20 18:29:17 +00:00
Nick Mathewson
df0a141a27
r14740@catbus: nickm | 2007-08-20 13:00:52 -0400
...
Only load MTBF data if we are running tor
svn:r11226
2007-08-20 17:02:04 +00:00
Nick Mathewson
3effc8b267
r14733@catbus: nickm | 2007-08-20 12:32:44 -0400
...
Clean up MTBF storage code. Do not count times that we have been down toward the current run. Handle backward timewarps correctly. Store MTBF data on exit in addition to periodically.
svn:r11225
2007-08-20 16:34:17 +00:00
Roger Dingledine
a200f442fb
avoid double-punctuation when we're reporting errors from the
...
config functions to the controller.
svn:r11221
2007-08-20 16:13:21 +00:00
Nick Mathewson
76d40372fc
r14731@catbus: nickm | 2007-08-20 12:02:09 -0400
...
Clean up authdir_X functions a little.
svn:r11220
2007-08-20 16:03:19 +00:00
Nick Mathewson
9958dc8d53
r14729@catbus: nickm | 2007-08-20 11:58:02 -0400
...
Trigger load and save of MTBF data.
svn:r11219
2007-08-20 15:59:31 +00:00
Nick Mathewson
d3b019a1df
r14726@catbus: nickm | 2007-08-20 11:42:07 -0400
...
Make v3-only authorities check reachability
svn:r11218
2007-08-20 15:43:17 +00:00
Nick Mathewson
113367bc01
r14722@catbus: nickm | 2007-08-20 10:54:29 -0400
...
Add debugging warning to not abort in the case of bug 483. This is probably not an actual error case, so we should figure out what is really causing it and do something more sensible.
svn:r11215
2007-08-20 14:59:05 +00:00
Nick Mathewson
c7ed49e7f8
r14663@catbus: nickm | 2007-08-18 17:50:51 -0400
...
Fix an XXX020 in or.h: BRIDGE != CONTROLLER.
svn:r11195
2007-08-19 15:20:11 +00:00
Roger Dingledine
473ff753f2
bump to 0.2.0.5-alpha since we're getting close
...
svn:r11189
2007-08-19 07:30:29 +00:00
Roger Dingledine
8641439a6e
backport candidate (revert part of r9350):
...
Expire application streams in all cases if they've been around
longer than SocksTimeout. Right now there are some cases where the
stream will live forever, demanding a new circuit every 15 seconds.
Bugfix on 0.1.2.7-alpha; fixes bug 454; reported by lodger.
svn:r11186
2007-08-19 07:17:40 +00:00
Roger Dingledine
d6aa617e07
oh, and make it compile too
...
svn:r11185
2007-08-19 07:06:02 +00:00
Roger Dingledine
03560d575e
generalize circuit_find_to_cannibalize() so it knows what
...
purpose circuit we're planning to become
svn:r11184
2007-08-19 07:04:24 +00:00
Roger Dingledine
c88803d924
Fix a bug in ADDRMAP controller replies that would sometimes
...
try to print a NULL. Patch from tup.
svn:r11181
2007-08-19 04:58:55 +00:00
Roger Dingledine
7c49a8d03e
get rid of a debugging message that non v3-authorities were
...
seeing too, and that doesn't seem to be critical
svn:r11179
2007-08-19 04:28:56 +00:00
Andrew Lewman
b7026ea1b3
Move event.h include down a stanza to make mingw happy.
...
svn:r11174
2007-08-19 02:56:16 +00:00
Roger Dingledine
96cff65f85
backport candidate:
...
Refuse to start with certain directory authority keys, and
encourage people using them to stop.
svn:r11171
2007-08-19 02:51:54 +00:00
Nick Mathewson
b45b91a358
r14661@catbus: nickm | 2007-08-18 15:38:08 -0400
...
Long overdue test.c refactoring: add --warn/--notice/--info/--debug command line options to set logging levels, and let the user specify which tests to run from the commmand line.
svn:r11167
2007-08-18 19:39:14 +00:00
Nick Mathewson
676d8622de
r14659@catbus: nickm | 2007-08-18 14:19:34 -0400
...
When we are loading state info from disk, never believe any date in the future. Doing so can keep us from retrying guards, rotating onion keys, storing bandwidth info, etc. Fixes bug 434, and others. Backport candidate, once it has been tested.
svn:r11166
2007-08-18 18:20:42 +00:00
Peter Palfrader
50c0e6b37f
Remove routerlist_check_bug_417() and all its calls. There is still some more debugging code left, marked with XXXs
...
svn:r11161
2007-08-17 22:55:04 +00:00
Nick Mathewson
1f244d3943
r14639@catbus: nickm | 2007-08-17 17:45:28 -0400
...
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled.
svn:r11157
2007-08-17 21:46:34 +00:00
Nick Mathewson
f8b3927e07
r14634@catbus: nickm | 2007-08-17 16:43:49 -0400
...
Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly.
svn:r11155
2007-08-17 20:44:54 +00:00
Nick Mathewson
b34ed73706
r14630@catbus: nickm | 2007-08-17 16:30:42 -0400
...
Functions to save and load MTBF information.
svn:r11153
2007-08-17 20:31:59 +00:00
Nick Mathewson
31668172ed
r14626@catbus: nickm | 2007-08-17 11:20:05 -0400
...
Link note_router_reachable and note_router_unreachable to mtbf code. decouple mtbf from connect/disconnect. log it in USR1. do not blow it away on cleanup if we are an authority.
svn:r11151
2007-08-17 20:31:54 +00:00
Roger Dingledine
3f186e6510
help nick work on proposal 108
...
svn:r11148
2007-08-17 01:29:58 +00:00
Nick Mathewson
357b4645cf
r14612@catbus: nickm | 2007-08-16 15:23:35 -0400
...
Initial work on proposal 108: have rephist.c track the information we want to be tracking for OR stability.
svn:r11147
2007-08-16 19:32:29 +00:00
Roger Dingledine
2df9bb937d
clean up the cookieauth stuff
...
svn:r11146
2007-08-16 19:27:31 +00:00
Nick Mathewson
718953dbe9
r14606@catbus: nickm | 2007-08-16 13:45:01 -0400
...
Implement CookieAuthFile and CookieAuthFileGroupReadable. Backport candidate.
svn:r11141
2007-08-16 17:46:01 +00:00