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
3de8158b16
r15702@catbus: nickm | 2007-10-11 17:29:20 -0400
...
Remove a bunch of redundant includes in crypto.c
svn:r11885
2007-10-11 21:40:32 +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
bab60e5ade
bugfix on r11301:
...
Fix a minor memory leak whenever we wrote out a file. Bugfix on
0.2.0.7-alpha.
svn:r11863
2007-10-11 03:10:52 +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
38ac9f6005
r14682@Kushana: nickm | 2007-09-28 15:23:38 -0400
...
From little acorns: redo our string and digest hashing code to be faster, since this stuff may be critical-path.
svn:r11700
2007-09-28 19:23:54 +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
3a3c1d1d1c
r15280@catbus: nickm | 2007-09-22 02:02:00 -0400
...
Bump version to 0.2.0.7-alpha-dev
svn:r11576
2007-09-22 06:06:08 +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
991ebb42de
bump to 0.2.0.7-alpha
...
svn:r11572
2007-09-22 00:05:56 +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
Nick Mathewson
f0634bb7ca
r14532@Kushana: nickm | 2007-09-20 13:25:38 -0400
...
Clean up some macros in aes.c
svn:r11537
2007-09-20 17:28:07 +00:00
Nick Mathewson
262d5ab0a8
r15210@catbus: nickm | 2007-09-20 13:04:05 -0400
...
Re-optimize counter-mode: save about 15% on my core2 by (1) not regenerating the entire counter buffer every time we encrypt a block of keystream (2) using the platform-optimized htonl to convert to big-endian (It's a single instruction on 486 and later ) and (3) not even keeping a separate "counter" and "buffer" when the platform is big-endian. The third still needs testing.
svn:r11536
2007-09-20 17:07:45 +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
Roger Dingledine
d4e950ccc8
poke at svn until it compiles. nick, you should decide if this
...
is what you meant to do.
svn:r11529
2007-09-20 03:06:45 +00:00
Nick Mathewson
5f7950e874
r15172@catbus: nickm | 2007-09-19 11:50:02 -0400
...
New (untested) code to implement AES-with-IV. Currently, IVs are generated randomly. Once tested, should be (almost) a drop-in replacement for the CBC functions.
svn:r11519
2007-09-19 15:53:41 +00:00
Nick Mathewson
7e93139a85
r15171@catbus: nickm | 2007-09-19 11:44:54 -0400
...
Switch our AES implementation from "128 bit counter with to 64 bits set to 0" to a proper implementation of counter mode. Also, add an aes_set_iv function to initialize the counter to a nonzero value.
svn:r11518
2007-09-19 15:53:38 +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
1a930cfc70
minor style tweaks
...
svn:r11490
2007-09-18 17:18:14 +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
509bc3b4a0
r14359@Kushana: nickm | 2007-09-08 15:07:17 -0400
...
Add some generic skew-and-tolerance functions so we can handle time more sanely.
svn:r11406
2007-09-08 19:08:46 +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
6ba66c2f42
r14323@kushana: nickm | 2007-09-04 14:27:33 -0400
...
Patch from sjmurdoch to fix dnsleak warning when reverse-resolving via socks5.
svn:r11373
2007-09-04 18:27:40 +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
c341bc090e
r14869@catbus: nickm | 2007-08-31 08:49:26 -0400
...
Fix a segfault in expand_filename("~"). Found by lindi.
svn:r11332
2007-08-31 12:51:52 +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
8408122222
r14831@catbus: nickm | 2007-08-29 14:17:42 -0400
...
Refactor write_chunks_to_file_impl: break out the "pick a temporary name if it makes sense, and open the right filename" logic and the "close the file and unlink or rename if necessary" logic. This will let us write big files in a smarter way than "Build a big string" or "make a list of chunks", once we get around to using it.
svn:r11300
2007-08-29 19:02:37 +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
24462ff211
bump to 0.2.0.6-alpha-dev so we're ready to fix more bugs :)
...
svn:r11281
2007-08-27 03:47:36 +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
45bc168b53
bump to 0.2.0.6-alpha in preparation for tomorrow's release
...
svn:r11275
2007-08-25 21:59:14 +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
05f12bffe9
Handle unexpected whitespace better in malformed descriptors. Bug
...
found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
svn:r11229
2007-08-20 20:05:56 +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
Roger Dingledine
75bd472869
do another cleanup pass on the sample torrc
...
svn:r11168
2007-08-19 00:59:04 +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
Nick Mathewson
a237f25f9a
r14651@catbus: nickm | 2007-08-17 21:37:03 -0400
...
Another attempt to confirm to msvc for bug 482.
svn:r11162
2007-08-18 01:38:11 +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
Peter Palfrader
0713606469
redefine BITARRAY_MASK as a function of BITARRAY_SHIFT
...
svn:r11160
2007-08-17 22:43:00 +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
Nick Mathewson
f4398feadb
r14600@catbus: nickm | 2007-08-16 13:30:22 -0400
...
Implement proposal 119. Backport candidate.
svn:r11138
2007-08-16 17:31:23 +00:00
Nick Mathewson
3623a12262
r14583@catbus: nickm | 2007-08-15 17:52:35 -0400
...
Fix a bug caught by Kate: when we switched from masks to bits in 0.2.0.3-alpha, we added a spurious ! that made us never believe that any address fell inside a virtual address range. While we're at it, save a trip around the loop in the common case.
svn:r11129
2007-08-15 21:53:34 +00:00
Nick Mathewson
181ba71a90
r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400
...
Fix an XXXX020 and a few DOCDOCs.
svn:r11127
2007-08-15 19:56:01 +00:00
Nick Mathewson
abad4dfc7a
r14050@Kushana: nickm | 2007-08-15 15:21:02 -0400
...
Eliminate tons of repeated code in directory_handle_command_get.
svn:r11126
2007-08-15 19:55:57 +00:00
Nick Mathewson
4135c68853
r14049@Kushana: nickm | 2007-08-15 14:43:56 -0400
...
Implement code to serve pending votes, consensuses, and signatures.
svn:r11125
2007-08-15 19:55:52 +00:00
Nick Mathewson
717f3b8a12
r14047@Kushana: nickm | 2007-08-15 13:57:39 -0400
...
fix a really nasty bug in v3 authorities: only set v3_digest in trusted_dir_server_t for v3 authorities.
svn:r11124
2007-08-15 17:57:47 +00:00
Nick Mathewson
e10041447c
r14045@Kushana: nickm | 2007-08-15 13:07:21 -0400
...
Add more logs to try to hunt down latest voting bug.
svn:r11123
2007-08-15 17:07:27 +00:00
Nick Mathewson
38b84d9659
r14043@Kushana: nickm | 2007-08-15 12:12:25 -0400
...
Fix consensus signatures: regenerate the entire signature list when we get a new signature, rather than just appending the new signature. This lets us tentatively accept weird signatures, since we can replace them with better ones later.
svn:r11122
2007-08-15 16:12:40 +00:00
Nick Mathewson
d5bd7d9fa3
r14032@Kushana: nickm | 2007-08-15 11:35:16 -0400
...
Add unit tests for median functions; enforce sensible ranges for intervals and delays.
svn:r11121
2007-08-15 15:38:58 +00:00
Nick Mathewson
60c2e9d99e
r14031@Kushana: nickm | 2007-08-15 11:34:26 -0400
...
Fix a segfault in cert retrieval
svn:r11120
2007-08-15 15:38:53 +00:00
Roger Dingledine
7e5cee8110
this does not actually change anything (i hope), but it makes me a lot
...
more comfortable.
nick, can you confirm this?
svn:r11119
2007-08-15 15:36:34 +00:00
Roger Dingledine
f606d74f56
backport candidate:
...
- If we require CookieAuthentication but we fail to write the
cookie file, we would warn but not exit, and end up in a state
where no controller could authenticate. Now we exit.
- If we require CookieAuthentication, stop generating a new cookie
every time we change any piece of our config.
svn:r11117
2007-08-15 15:26:14 +00:00
Nick Mathewson
484a580698
r14028@Kushana: nickm | 2007-08-14 17:07:51 -0400
...
Implement cert-retrieval URLs. (Also, update TODO)
svn:r11112
2007-08-14 21:09:30 +00:00
Nick Mathewson
486166f9a8
r14020@Kushana: nickm | 2007-08-14 16:07:37 -0400
...
return 404 properly when somebody requests a bunch of nonexistent statuses/servers
svn:r11110
2007-08-14 20:19:58 +00:00
Nick Mathewson
3923eff1e6
r14019@Kushana: nickm | 2007-08-14 15:40:05 -0400
...
Save a 4 or 8 bytes per connection in or.h
svn:r11109
2007-08-14 20:19:51 +00:00
Nick Mathewson
2a31f09af6
r14018@Kushana: nickm | 2007-08-14 15:39:35 -0400
...
Resolve XXXX020s in config.c
svn:r11108
2007-08-14 20:19:46 +00:00
Nick Mathewson
42fa1de585
r14017@Kushana: nickm | 2007-08-14 15:13:14 -0400
...
Enable more code for v3 voting timing information. Also, spec clarification.
svn:r11107
2007-08-14 20:19:40 +00:00
Nick Mathewson
25d2901857
r14015@Kushana: nickm | 2007-08-14 12:39:04 -0400
...
Try to avoid adding duplicate signatures to a consensus.
svn:r11105
2007-08-14 16:39:18 +00:00
Nick Mathewson
925394022a
r14011@Kushana: nickm | 2007-08-14 10:29:49 -0400
...
Actually upload signatures when we vote. log more about the signatures we get. discard pending vote stuff after we publish.
svn:r11104
2007-08-14 14:30:45 +00:00
Nick Mathewson
944bc41f99
r14010@Kushana: nickm | 2007-08-14 10:20:28 -0400
...
Fix a URL in voting
svn:r11103
2007-08-14 14:30:33 +00:00
Nick Mathewson
3399d63170
r14009@Kushana: nickm | 2007-08-14 10:20:20 -0400
...
Fix a logic error in certificate handling
svn:r11102
2007-08-14 14:30:25 +00:00
Nick Mathewson
817ed1ccbf
r14006@kushana: nickm | 2007-08-14 09:34:28 -0400
...
re-enable version checking
svn:r11101
2007-08-14 13:34:41 +00:00
Nick Mathewson
3268ab58f2
r14005@kushana: nickm | 2007-08-14 09:34:19 -0400
...
add a warning to find a bug (maybe)
svn:r11100
2007-08-14 13:34:35 +00:00
Nick Mathewson
cd5eaf53f9
r14003@kushana: nickm | 2007-08-13 22:23:49 -0400
...
Resolve a pile of XXXXs in and around voting code
svn:r11099
2007-08-14 02:23:57 +00:00
Nick Mathewson
7113ab8f90
r14001@kushana: nickm | 2007-08-13 20:06:36 -0400
...
Check for *at least* as many signatures as required, not for *more* signatures than required.
svn:r11098
2007-08-14 00:07:29 +00:00
Nick Mathewson
b6c548094c
r13998@kushana: nickm | 2007-08-13 19:20:28 -0400
...
Add some insanely verbose log messages on voting authorities.
svn:r11097
2007-08-13 23:23:06 +00:00
Nick Mathewson
a1ce60f9a6
r14546@catbus: nickm | 2007-08-13 17:19:01 -0400
...
Make if-modified-since work on consensuses
svn:r11095
2007-08-13 21:19:54 +00:00
Nick Mathewson
9356a0b1dd
r14544@catbus: nickm | 2007-08-13 17:00:09 -0400
...
Give a 200 when a duplicate vote gets uploaded.
svn:r11094
2007-08-13 21:01:02 +00:00
Nick Mathewson
7d990b5aa1
r13992@Kushana: nickm | 2007-08-13 16:45:22 -0400
...
A vote we already have a nd a double-upload are different things.
svn:r11093
2007-08-13 20:45:36 +00:00
Nick Mathewson
b4adf151d2
r13991@Kushana: nickm | 2007-08-13 16:37:43 -0400
...
Do not warn on missing cached consensus.
svn:r11092
2007-08-13 20:45:27 +00:00
Nick Mathewson
4e4dcb2571
r13989@Kushana: nickm | 2007-08-13 16:31:03 -0400
...
Actually store the v3 authority id digest of a trusteddirserver
svn:r11091
2007-08-13 20:31:08 +00:00
Nick Mathewson
94c90c42e3
r13987@Kushana: nickm | 2007-08-13 16:17:09 -0400
...
Stop segfaulting on failed consensus.
svn:r11090
2007-08-13 20:17:14 +00:00
Nick Mathewson
936edd901d
r13985@Kushana: nickm | 2007-08-13 16:05:07 -0400
...
Fix some simple logic errors in voting.
svn:r11089
2007-08-13 20:05:25 +00:00
Nick Mathewson
2d07cce67f
r14536@catbus: nickm | 2007-08-13 15:54:17 -0400
...
Make voting actually function.
svn:r11088
2007-08-13 19:55:08 +00:00
Nick Mathewson
89c65f2a4e
r14534@catbus: nickm | 2007-08-13 15:15:46 -0400
...
Read v3 keys from the right location
svn:r11087
2007-08-13 19:16:44 +00:00
Nick Mathewson
ce1f01c3e6
r14531@catbus: nickm | 2007-08-13 14:46:25 -0400
...
Cache v3 networkstatus consensuses on disk.
svn:r11086
2007-08-13 18:47:22 +00:00
Nick Mathewson
33cf3ada94
r14526@catbus: nickm | 2007-08-13 14:08:37 -0400
...
Make voting interval configurable.
svn:r11083
2007-08-13 18:09:38 +00:00
Roger Dingledine
762b5c479c
less scary log entry
...
svn:r11077
2007-08-11 14:38:11 +00:00
Roger Dingledine
330abbb6c6
logging patch from karsten, slightly modified to compile
...
svn:r11074
2007-08-11 14:13:25 +00:00
Roger Dingledine
5920484083
dirserv.c:782: warning: `set_v1_dirty' might be used uninitialized in this function
...
svn:r11068
2007-08-10 03:07:00 +00:00
Nick Mathewson
5070a1e3ef
r14103@catbus: nickm | 2007-08-09 18:30:40 -0400
...
Drop v1 directory support: instead, just generate stub v1 directories. This should save lots and lots of directory bandwidth, and break any code relying on v1 directories, including Tor 0.1.0.x and earlier.
svn:r11067
2007-08-09 22:32:33 +00:00
Nick Mathewson
da09efe13d
r13953@Kushana: nickm | 2007-08-08 07:40:46 -0700
...
Fix osx compilation.
svn:r11065
2007-08-08 14:43:30 +00:00
Nick Mathewson
3fc04529d4
r14093@catbus: nickm | 2007-08-08 01:49:54 -0400
...
Include fewer redundant headers; use the compiler search paths better.
svn:r11060
2007-08-08 05:50:31 +00:00
Nick Mathewson
50f5f63678
r14091@catbus: nickm | 2007-08-08 01:13:17 -0400
...
Fix an annoying warning on OpenBSD: only include malloc.h if we are using it.
svn:r11059
2007-08-08 05:14:03 +00:00
Roger Dingledine
9d2b1004b1
bump to 0.2.0.4-alpha-dev
...
svn:r11056
2007-08-08 04:12:05 +00:00
Nick Mathewson
68e6426c23
r13927@Kushana: nickm | 2007-08-03 00:56:54 -0700
...
ratchet down the time spent on threading tests
svn:r11043
2007-08-03 07:57:41 +00:00
Nick Mathewson
652d4e0248
r13926@Kushana: nickm | 2007-08-03 00:55:23 -0700
...
Fix compilation with HAVE_GETADDRINFO unset
svn:r11042
2007-08-03 07:57:31 +00:00
Nick Mathewson
1c513979fc
r13919@Kushana: nickm | 2007-08-02 10:58:31 -0700
...
Warn about unsafe ControlPort configurations.
svn:r11038
2007-08-02 21:03:40 +00:00
Nick Mathewson
ba28346f2f
r13907@Kushana: nickm | 2007-08-02 10:29:13 -0700
...
Try (once again) to fix mingw build wrt detecting ipv6 types.
svn:r11037
2007-08-02 17:30:42 +00:00
Roger Dingledine
46c4f8ff42
bump to 0.2.0.4-alpha
...
svn:r11022
2007-08-02 04:49:20 +00:00
Roger Dingledine
659cdae145
a patch on r11016 that makes it work better
...
svn:r11018
2007-08-02 04:28:29 +00:00
Nick Mathewson
322b6f7e65
r13892@Kushana: nickm | 2007-08-01 18:27:13 -0700
...
Close immediately after anything but a successful authentication attempt on the control port. Backport candidate.
svn:r11016
2007-08-02 01:28:40 +00:00
Nick Mathewson
a4e7dffc94
r13886@Kushana: nickm | 2007-08-01 09:43:06 -0700
...
Unit tests and debugging for detached signature manipulation.
svn:r11015
2007-08-01 16:43:44 +00:00
Nick Mathewson
d5c78593d2
r13873@Kushana: nickm | 2007-07-31 10:54:05 -0700
...
Split over-optimized digestmap_set code into a generic part and a digestmap-specific part.
svn:r11012
2007-08-01 15:57:48 +00:00
Nick Mathewson
484c8b776d
r13872@Kushana: nickm | 2007-07-31 08:27:54 -0700
...
Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build.
svn:r11011
2007-08-01 15:57:34 +00:00
Nick Mathewson
2872a43386
r13871@Kushana: nickm | 2007-07-31 08:10:58 -0700
...
Fix warning aobut unused parameter on platforms without mallinfo.
svn:r11010
2007-08-01 15:57:07 +00:00
Nick Mathewson
480db0f00a
r14034@catbus: nickm | 2007-07-31 05:22:56 -0400
...
possible fix for bug 473: always set buf->cur on buf_remove_from_front.
svn:r11004
2007-07-31 09:31:15 +00:00
Peter Palfrader
ce8edc964c
Stop pretending all systems are fast
...
svn:r11003
2007-07-31 06:48:47 +00:00
Roger Dingledine
ec376c5fbd
bump to 0.2.0.3-alpha-dev
...
svn:r10999
2007-07-30 23:53:09 +00:00
Roger Dingledine
57c6264ede
tweak comment
...
svn:r10998
2007-07-30 23:52:58 +00:00
Nick Mathewson
45c82b1d85
r14024@catbus: nickm | 2007-07-30 14:13:58 -0400
...
Glibc (and maybe others) define a mallinfo() that can be used to see how the platform malloc is acting inside. When we have it, dump its output on dumpmemusage().
svn:r10996
2007-07-30 18:14:14 +00:00
Nick Mathewson
9fb77a6479
Disable SENTINELS in buffers: it may be responsible for making platform mallocs() be inefficient, and we havent needed it in a long long time.
...
svn:r10994
2007-07-30 17:51:14 +00:00
Nick Mathewson
9260a824ef
Yet another buffer RAM patch: tNever ever ever keep a buffer memory chunk around for an empty buffer that could go on the freelist. This wants profiling to make sure that performance doesnt suffer.
...
svn:r10993
2007-07-30 17:47:43 +00:00
Nick Mathewson
34a3a5e2f4
r14016@catbus: nickm | 2007-07-30 13:45:55 -0400
...
More documentation
svn:r10992
2007-07-30 17:46:14 +00:00
Nick Mathewson
23a345b3c2
r14015@catbus: nickm | 2007-07-30 13:18:05 -0400
...
Add missing code documentation in src/common
svn:r10991
2007-07-30 17:46:12 +00:00
Roger Dingledine
5d535a28c9
clean up some bridge log messages
...
svn:r10985
2007-07-30 08:43:02 +00:00
Roger Dingledine
1b01ad6d38
writing instructions before you release means you can make sure
...
your instructions don't seg fault
svn:r10984
2007-07-30 08:42:47 +00:00
Roger Dingledine
e118efb545
bump to 0.2.0.3-alpha
...
svn:r10982
2007-07-30 03:40:51 +00:00
Nick Mathewson
915c4c3ab8
r14001@catbus: nickm | 2007-07-29 21:31:53 -0400
...
Try to call time(NULL) a little less.
svn:r10980
2007-07-30 01:32:12 +00:00
Nick Mathewson
a3b8b2c4e3
r14000@catbus: nickm | 2007-07-29 21:16:45 -0400
...
Fix bug 472: do not use spaces in pseudo-address for local link cons.
svn:r10979
2007-07-30 01:32:07 +00:00
Roger Dingledine
468d922280
start hunting bugs, first in a non-crashy manner
...
svn:r10978
2007-07-30 01:07:06 +00:00
Nick Mathewson
3dbc825f36
r13996@catbus: nickm | 2007-07-29 19:17:53 -0400
...
Fix whitespace
svn:r10977
2007-07-29 23:18:06 +00:00
Nick Mathewson
77508edd36
r13989@catbus: nickm | 2007-07-29 19:11:07 -0400
...
More directory voting code. Now, if everything works, and I haven't forgotten anything, it is possible to set up some v3 authorities and start voting. Of course, I have probably forgotten something, and there are probably bugs in there somewhere too.
svn:r10976
2007-07-29 23:11:44 +00:00
Nick Mathewson
759ed3ce3f
r13988@catbus: nickm | 2007-07-29 16:32:36 -0400
...
Cheesy attempt to break some censorware. Not a long-term fix, but it will be intersting to watch the epidemiology of the workarounds as the censors apply them.
svn:r10975
2007-07-29 23:11:42 +00:00
Roger Dingledine
ca7c53d3cc
Be even more aggressive about separating local traffic from relayed
...
traffic when RelayBandwidthRate is set. (Refines proposal 111.)
svn:r10974
2007-07-29 22:13:44 +00:00
Nick Mathewson
616152486f
r13986@catbus: nickm | 2007-07-29 09:15:03 -0400
...
Answer comment from Roger.
svn:r10971
2007-07-29 13:18:52 +00:00
Roger Dingledine
a68e6e23c9
patches on r10968: compare advertised capacity, not bandwidthrate;
...
and make the sorting order deterministic to avoid flapping.
also note that we could take the "is_auth" checks out of the
sorting entirely.
svn:r10970
2007-07-29 05:56:30 +00:00
Nick Mathewson
9031bbd4d8
r13982@catbus: nickm | 2007-07-29 01:31:53 -0400
...
Actually, we missed a rule about what routers to prefer: first prefer authority to non-authority, *then* running, *then* bandwidth.
svn:r10969
2007-07-29 05:32:03 +00:00
Nick Mathewson
1b665b3c7e
r13979@catbus: nickm | 2007-07-29 01:20:20 -0400
...
Implement proposal 109: As an authority, never call more than 3 servers per IP Running and Valid. Prefer Running servers to non-running ones; then prefer high-bandwidth to low-bandwidth. Needs testing.
svn:r10968
2007-07-29 05:20:31 +00:00
Roger Dingledine
eca2a30060
make progress towards retrying our bridges when they're all
...
down and we get a new socks request
svn:r10967
2007-07-29 04:38:21 +00:00
Nick Mathewson
964e4a305d
r13972@catbus: nickm | 2007-07-29 00:01:38 -0400
...
Make our control events for multi-line async replies conform to our old grammar. Change back to the old grammar (which got "corrected" in r10931).
svn:r10964
2007-07-29 04:03:25 +00:00
Nick Mathewson
25bd4204d0
r13964@catbus: nickm | 2007-07-28 22:55:10 -0400
...
Change "IN_ADDR" macro to "IN4_ADDR" in an attempt to fix mingw compilation
svn:r10963
2007-07-29 02:55:24 +00:00
Nick Mathewson
d2adb68ed6
r13963@catbus: nickm | 2007-07-28 22:53:32 -0400
...
Add support for signature upload
svn:r10962
2007-07-29 02:55:21 +00:00
Roger Dingledine
9895d840f5
When running with dmalloc, dump more stats on hup and exit.
...
svn:r10961
2007-07-29 01:18:00 +00:00
Nick Mathewson
764bde22de
r13960@catbus: nickm | 2007-07-28 18:14:29 -0400
...
Start correctly when cached-certs is missing. oops
svn:r10957
2007-07-28 22:14:42 +00:00
Nick Mathewson
76a408941c
r13959@catbus: nickm | 2007-07-28 18:09:56 -0400
...
Use the correct formula to calculate exit weights.
svn:r10956
2007-07-28 22:14:39 +00:00
Nick Mathewson
afe9f33d35
r13956@catbus: nickm | 2007-07-27 20:09:48 -0400
...
Better certificate manipulations: extract certificates from incoming votes, forget ones that are very old, and remember to store them on disk.
svn:r10954
2007-07-28 00:11:34 +00:00
Nick Mathewson
0d274e1db1
r13952@catbus: nickm | 2007-07-27 19:18:46 -0400
...
Weasel noticed that many buffers spend their time with empty 4k, 8k, and 16k memory chunks. Thus, be more aggressive about putting empty chunks on the freelist, regardless of their high water marks. (Also, run buffer_shrink_freelist on the 8k-chunk freelist.)
svn:r10953
2007-07-27 23:19:02 +00:00
Nick Mathewson
43f64d09ea
r13951@catbus: nickm | 2007-07-27 18:39:28 -0400
...
Make it so we can actually compile with FULL_V1_DIRECTORIES disabled.
svn:r10952
2007-07-27 23:18:58 +00:00
Nick Mathewson
f6229d6432
r13950@catbus: nickm | 2007-07-27 18:15:23 -0400
...
Wrap bandwidth usage info in another ifdef so we can easily drop it on august 1 when it is time to finalize proposal 104.
svn:r10951
2007-07-27 23:18:55 +00:00
Nick Mathewson
0e5d8925d9
r13946@catbus: nickm | 2007-07-27 16:09:31 -0400
...
Fix median_int for platforms where sizeof(int)!=sizeof(time_t)
svn:r10949
2007-07-27 20:09:37 +00:00
Nick Mathewson
a5477c7bb9
r13944@catbus: nickm | 2007-07-27 15:52:35 -0400
...
Fix warnings on platforms where rlim values can be signed.
Add an 8k buffer freelist.
svn:r10948
2007-07-27 19:53:29 +00:00
Nick Mathewson
bc9a7be943
r13939@catbus: nickm | 2007-07-27 14:33:22 -0400
...
When dumping memory usage, list bytes used in buffer memory free-lists.
svn:r10947
2007-07-27 18:33:37 +00:00
Nick Mathewson
65cdda20b3
r13938@catbus: nickm | 2007-07-27 14:26:07 -0400
...
More code to handle incoming consensus signatures
svn:r10946
2007-07-27 18:33:34 +00:00
Nick Mathewson
10f166045b
r13937@catbus: nickm | 2007-07-27 12:43:36 -0400
...
Maintain a detached-signatures document along with pending consensus document. Add a dirvote_free_all() to clean up static vars in dirvote.c
svn:r10945
2007-07-27 18:33:30 +00:00
Nick Mathewson
a65cea38d2
r13936@catbus: nickm | 2007-07-27 12:23:26 -0400
...
Code to implement detached signature documents.
svn:r10944
2007-07-27 18:33:28 +00:00
Nick Mathewson
35561a542c
r13934@catbus: nickm | 2007-07-27 10:41:00 -0400
...
Fix spelling; add a comment.
svn:r10943
2007-07-27 14:41:08 +00:00
Peter Palfrader
49db52abe6
Maybe fix #471 . Compute the size of bitfields more correctly. Nick, please check.
...
svn:r10941
2007-07-27 04:45:42 +00:00
Peter Palfrader
1f4275451b
Resolve a compiler warning about uninitialized use
...
svn:r10940
2007-07-27 01:10:23 +00:00
Nick Mathewson
eed888a2b7
r13927@catbus: nickm | 2007-07-26 17:26:49 -0400
...
Fix router_choose_by_bandwidth to no longer be biases by floating-point roundoff issues. This runs through the list of routers yet another time, and uses an additional bitfield, but this should be okay: the function did not appear in profiles before, and shouldnt start appearing now.
svn:r10939
2007-07-26 21:26:57 +00:00
Nick Mathewson
b1c873182d
r13926@catbus: nickm | 2007-07-26 17:21:06 -0400
...
Add a bit-array type with reasonably fast inline functions.
svn:r10938
2007-07-26 21:26:53 +00:00
Nick Mathewson
6c4864f351
r13924@catbus: nickm | 2007-07-26 16:46:45 -0400
...
We can have multiple authority certificates for an authority at a time: make the code reflect that.
svn:r10937
2007-07-26 20:49:04 +00:00
Nick Mathewson
fb2f3c035b
r13921@catbus: nickm | 2007-07-26 16:26:48 -0400
...
Code to add signatures to a pending consensus directory.
svn:r10936
2007-07-26 20:26:59 +00:00
Nick Mathewson
189bc7cf9f
r13920@catbus: nickm | 2007-07-26 16:25:25 -0400
...
whitespace fixes
svn:r10935
2007-07-26 20:26:53 +00:00
Nick Mathewson
7f3e2378b6
r13908@catbus: nickm | 2007-07-25 18:55:47 -0400
...
Patch from Robert Hogan: set conn->dns_server_port correctly so that we can close dns server ports when they change, thus avoiding crashes and dangling references and other sources of unhappiness.
svn:r10933
2007-07-25 22:57:07 +00:00
Nick Mathewson
025a81fc18
r13907@catbus: nickm | 2007-07-25 18:51:25 -0400
...
Patch from tup: translate LFs to CRLFs in NS replies and
ensures the data section is properly terminated with "\r\n.\r\n
svn:r10932
2007-07-25 22:57:02 +00:00
Nick Mathewson
a8821e2d82
r13905@catbus: nickm | 2007-07-25 18:48:44 -0400
...
ADDRMAP events should never have specified local time. Extend them to have the proper gmt time, and make GETINFO address-mappings always do the right thing (since it is new in this version).
svn:r10930
2007-07-25 22:56:54 +00:00
Nick Mathewson
47f3a40900
r13904@catbus: nickm | 2007-07-25 18:04:46 -0400
...
Fix whitespaces and compilation in and around dirvote code.
svn:r10929
2007-07-25 22:56:50 +00:00
Nick Mathewson
2305c2c7be
r13903@catbus: nickm | 2007-07-25 18:03:56 -0400
...
Make buffer large enough to hold ip6.arpa addresses. This code was not actually used yet, so no user-visible bug existed. (Based on patch by croup.)
svn:r10928
2007-07-25 22:56:47 +00:00
Nick Mathewson
a66f259354
r13902@catbus: nickm | 2007-07-25 17:43:52 -0400
...
Some dirvote code to handle generating votes and slinging them around. More code is still needed.
svn:r10927
2007-07-25 22:56:44 +00:00
Nick Mathewson
1b7a704c34
r13901@catbus: nickm | 2007-07-25 16:23:51 -0400
...
Make all code to generate v1 directories into conditional code.
svn:r10926
2007-07-25 22:56:40 +00:00
Nick Mathewson
83fa843663
r13900@catbus: nickm | 2007-07-25 16:16:30 -0400
...
Better fix for GCC 4.2 warning on routerlist.c
svn:r10925
2007-07-25 22:56:34 +00:00
Nick Mathewson
1b24067395
r13773@kushana: nickm | 2007-07-23 00:16:44 -0400
...
Use tor malloc replacements in eventdns.c for now: there might be goblins there...goblins that only dmalloc can find!
svn:r10912
2007-07-23 04:18:20 +00:00
Nick Mathewson
4d2f45978f
r13875@catbus: nickm | 2007-07-22 18:56:30 -0400
...
Once more with feeling.
svn:r10907
2007-07-22 22:56:33 +00:00
Nick Mathewson
6640fdeeee
r13872@catbus: nickm | 2007-07-22 18:51:02 -0400
...
esc_router_info static field should not be cleared postfork, to avoid races.
svn:r10906
2007-07-22 22:51:07 +00:00
Nick Mathewson
701fce8e5c
r13858@catbus: nickm | 2007-07-22 18:44:02 -0400
...
Fix/note some relatively trivial mem usage issues
svn:r10905
2007-07-22 22:49:49 +00:00
Roger Dingledine
0104882e9b
dump dmalloc stats on sighup
...
svn:r10903
2007-07-22 07:05:43 +00:00
Roger Dingledine
5190916670
free a small static string on exit.
...
svn:r10902
2007-07-22 06:32:28 +00:00
Roger Dingledine
e96d807db4
Revert part of r10874, since it was breaking our load balancing
...
(we always picked one router past the one we wanted!) and could
conceivably read past the end of the smartlist too.
Nick, I don't know what gcc 4.2 was worried about, but we need
to find a better fix than this. :)
svn:r10901
2007-07-22 04:36:33 +00:00
Roger Dingledine
6fc336d217
handle fetching bridge descriptors from the bridge authority too.
...
svn:r10898
2007-07-22 00:16:48 +00:00
Roger Dingledine
56d3119581
Directory authorities now call routers Fast if their bandwidth is
...
at least 100KB/s, and consider their bandwidth adequate to be a
Guard if it is at least 250KB/s. This fix complements proposal
107. [Bugfix on 0.1.2.x]
svn:r10897
2007-07-21 23:40:55 +00:00
Roger Dingledine
a916e07ea6
when requesting tor/server/authority, ask for tor/server/authority.z
...
instead. same functionality, saves a bit of bandwidth. and might even
work.
svn:r10896
2007-07-21 22:04:18 +00:00
Nick Mathewson
8e50aa7341
r13856@catbus: nickm | 2007-07-20 14:30:44 -0400
...
slightly smarter heuristic about when to use obsolete ::a.b.c.d format.
svn:r10893
2007-07-20 18:30:47 +00:00
Nick Mathewson
8ba42a3bde
r13850@catbus: nickm | 2007-07-20 12:25:24 -0400
...
Fix some bugs in ntop/pton.
svn:r10891
2007-07-20 16:25:27 +00:00
Nick Mathewson
6223160ab7
r13848@catbus: nickm | 2007-07-19 16:47:16 -0400
...
Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks.
svn:r10888
2007-07-19 20:47:18 +00:00
Nick Mathewson
3015129a4a
r13846@catbus: nickm | 2007-07-19 16:31:41 -0400
...
Actually, OSX (and some BSDs) accept [f:f:f:f:f:f:f:f::] as a perfectly fine ipv6 address.
svn:r10887
2007-07-19 20:31:43 +00:00
Nick Mathewson
31a73c0767
r13844@catbus: nickm | 2007-07-19 16:04:04 -0400
...
Same as the last patch, only more so.
svn:r10886
2007-07-19 20:04:05 +00:00
Nick Mathewson
00420bd084
r13842@catbus: nickm | 2007-07-19 16:02:54 -0400
...
OSX writes ::3 as ::0.0.0.3; choose a less ambiguous example.
svn:r10885
2007-07-19 20:02:56 +00:00
Nick Mathewson
a1f4644a94
r13840@catbus: nickm | 2007-07-19 16:00:43 -0400
...
Apparently, this problem can occur on the whole BSD family. "Yay."
svn:r10884
2007-07-19 20:00:45 +00:00
Nick Mathewson
b2772f93cb
r13838@catbus: nickm | 2007-07-19 15:50:16 -0400
...
Apparently, OSX does not define s6_addr32 or s6_addr16. How silly.
svn:r10883
2007-07-19 19:50:20 +00:00
Nick Mathewson
679b55eb1f
r13836@catbus: nickm | 2007-07-19 15:43:04 -0400
...
Some older GCCs think that iph4 could be used uninitialized. Fix that.
svn:r10882
2007-07-19 19:43:08 +00:00
Nick Mathewson
4a240552c4
r13834@catbus: nickm | 2007-07-19 15:40:42 -0400
...
Another patch from croup: drop support for address masks that do not correspond to bit prefixes. Nobody has used this for a while, and we have given warnings for a long time.
svn:r10881
2007-07-19 19:40:45 +00:00
Nick Mathewson
bbbf504281
r13827@catbus: nickm | 2007-07-19 14:42:25 -0400
...
Merge in some generic address manipulation code from croup. Needs some work.
svn:r10880
2007-07-19 18:46:09 +00:00
Nick Mathewson
70aef18db1
r13826@catbus: nickm | 2007-07-19 12:21:30 -0400
...
Fix a copy-and-paste error in dirvote.c
svn:r10879
2007-07-19 18:46:06 +00:00
Nick Mathewson
5e6f05bc31
r13822@catbus: nickm | 2007-07-18 16:43:39 -0400
...
Tweak a couple of loop-related variables to make the gcc 4.2 -Wstrict-overflow warning happy.
svn:r10874
2007-07-18 20:46:14 +00:00
Nick Mathewson
d920683718
r13821@catbus: nickm | 2007-07-18 16:29:17 -0400
...
Initial code to manipulate vote timing correctly.
svn:r10873
2007-07-18 20:46:12 +00:00
Nick Mathewson
4a9d4c2c5c
r13820@catbus: nickm | 2007-07-18 16:07:30 -0400
...
Whitespace fix on r10849
svn:r10872
2007-07-18 20:46:10 +00:00
Peter Palfrader
3052bf6a84
Change routerlist_remove to not take an index argument we do not need anyway.
...
Now the only remaining caller of _routerlist_find_elt is an assert()
svn:r10869
2007-07-18 14:02:47 +00:00
Roger Dingledine
50487c249d
timeout and retry schedules for fetching bridge descriptors
...
svn:r10867
2007-07-18 10:06:03 +00:00
Roger Dingledine
5c4d86f512
using fascistfirewall and having your bridge on an unreachable
...
port silently didn't mix. now they loudly don't mix.
svn:r10862
2007-07-18 07:13:15 +00:00
Nick Mathewson
670db47e1b
r13801@catbus: nickm | 2007-07-17 13:49:12 -0400
...
More tweaks to dir-spec.txt; not complete, but closing in.
svn:r10856
2007-07-17 17:49:16 +00:00
Roger Dingledine
a1ab2c8087
free bridge list on exit; try harder to free buffer freelists on exit.
...
svn:r10854
2007-07-17 11:33:38 +00:00
Roger Dingledine
b7e4683ff9
bugfix on r10086:
...
We had accidentally labelled 0.1.2.x directory servers as not
suitable for begin_dir requests, and had labelled no directory
servers as suitable for uploading extra-info documents. [Bugfix
on 0.2.0.1-alpha]
svn:r10853
2007-07-17 09:37:00 +00:00
Roger Dingledine
fcbb817db5
free another string, and the buffer freelists, on exit.
...
svn:r10851
2007-07-17 09:26:45 +00:00
Roger Dingledine
ccfda2e3a3
a few fixes for bug 463. needs a changelog. might need more fixes.
...
svn:r10849
2007-07-17 02:53:17 +00:00
Nick Mathewson
ad45ddfb07
r13788@catbus: nickm | 2007-07-16 14:26:25 -0400
...
Patch from croup: rewrite the logic of get_next_token() to do the right thing with input that ends at weird places, or aligns with block boundaries after mmap. should fix bug 455. Needs fuzzing.
svn:r10847
2007-07-16 18:26:31 +00:00
Nick Mathewson
6e9f1f76f2
r13784@catbus: nickm | 2007-07-16 13:27:32 -0400
...
Apply patch from tup: remove extra space at the end of some circuit-status events, and stop translating CRLF to CRCRLF in control replies.
svn:r10845
2007-07-16 17:27:35 +00:00
Nick Mathewson
26a25edaec
r13777@catbus: nickm | 2007-07-16 12:58:08 -0400
...
Patch from tup: new address-mappings/ GETINFO that includes expiry times.
svn:r10844
2007-07-16 16:58:11 +00:00
Nick Mathewson
483c1e9017
r13774@catbus: nickm | 2007-07-16 12:23:28 -0400
...
Tweaks on constrained socket buffers patch from coderman: Add a changelog; rename some variables; fix some long lines and whitespace; make ConstrainedSockSize a memunit; pass setsockopt a void.
svn:r10843
2007-07-16 16:23:36 +00:00
Nick Mathewson
f4a6673758
r13773@catbus: nickm | 2007-07-16 11:58:25 -0400
...
Initial "constrained socket buffers" patch from coderman. needs tweaking.
svn:r10842
2007-07-16 16:23:34 +00:00
Roger Dingledine
6d2cb32d10
free some more memory on exit
...
svn:r10837
2007-07-16 04:33:47 +00:00
Roger Dingledine
4b719cbae0
stop reading uninitialized/outofbounds memory. possible backport,
...
quite related to bug 455.
svn:r10835
2007-07-16 03:39:21 +00:00
Roger Dingledine
98ce45bebf
Backport candidate:
...
Fix a potential crash bug when we load many server descriptors at
once and some of them make others of them obsolete. Fixes bug
458. [Bugfix on 0.1.2.x]
svn:r10832
2007-07-16 00:11:03 +00:00
Roger Dingledine
5ab3f49d93
backport candidate: fix a memory leak from r9039 which had us leaking
...
50ish bytes every time we rebuild the cached-router files.
svn:r10830
2007-07-15 08:34:32 +00:00
Roger Dingledine
2c2f7ee6a4
fix a memory leak from r10504 (i think)
...
svn:r10829
2007-07-15 08:11:56 +00:00
Peter Palfrader
2ce1cb22bd
Comment one tor_assert
...
svn:r10820
2007-07-12 17:37:47 +00:00
Roger Dingledine
ef6bc1a451
Keep streamids from different exits on a circuit separate. This
...
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-12 17:09:19 +00:00
Nick Mathewson
656b7761a8
r13730@catbus: nickm | 2007-07-12 12:32:40 -0400
...
Patch from lodger: avoid roundoff-error-induced crash bugs when picking routers by bandwidth.
Also, remove listed backports for 0.1.2.x; that list is now in TODO.012
svn:r10812
2007-07-12 16:34:45 +00:00
Peter Palfrader
9ed261cd6a
In router_add_to_routerlist() only call router_have_minimum_dir_info() under some circumstances, not always
...
svn:r10799
2007-07-12 15:57:23 +00:00
Roger Dingledine
9bf23e0598
backport candidate:
...
When sending destroy cells from a circuit's origin, don't include
the reason for tearing down the circuit. The spec says we didn't,
and now we actually don't. Reported by lodger. [Bugfix on 0.1.2.x]
svn:r10790
2007-07-11 03:37:45 +00:00
Roger Dingledine
83e8d8d9b9
clean up a comment
...
svn:r10789
2007-07-11 03:28:12 +00:00
Nick Mathewson
39dc589d32
r13691@catbus: nickm | 2007-07-10 18:44:30 -0400
...
Fix an assert error in 455 patch.
svn:r10788
2007-07-10 22:44:32 +00:00
Nick Mathewson
fa1376014b
r13689@catbus: nickm | 2007-07-10 17:46:30 -0400
...
tweaks to last patch. from croup.
svn:r10787
2007-07-10 21:46:33 +00:00
Nick Mathewson
7e20fdbefb
r13687@catbus: nickm | 2007-07-10 16:08:14 -0400
...
Possible partial fix for bug 455: use eos logic everywhere.
svn:r10786
2007-07-10 20:08:18 +00:00
Nick Mathewson
d6ba1c3d96
r13676@catbus: nickm | 2007-07-10 13:41:24 -0400
...
Man. I thought I removed that code.
svn:r10785
2007-07-10 17:41:26 +00:00
Nick Mathewson
a8465adaa2
r13667@catbus: nickm | 2007-07-10 13:12:52 -0400
...
Patch from tup: add GETINFO status/enough-dir-info
svn:r10782
2007-07-10 17:14:55 +00:00
Nick Mathewson
74711479eb
r13666@catbus: nickm | 2007-07-10 13:10:00 -0400
...
Get the RESOLVE controller code working.
svn:r10781
2007-07-10 17:14:51 +00:00
Nick Mathewson
7705314777
r13637@catbus: nickm | 2007-07-06 14:24:27 -0400
...
fix copy-paste error in config message src/or/config.c . Apply
initial (but pared-down) version of launch-resolve-via-controller
patch from Robert Hogan.
svn:r10780
2007-07-10 17:13:24 +00:00
Nick Mathewson
10e5ed1a84
r13602@Kushana: nickm | 2007-07-07 23:44:24 -0400
...
Backport candidate: fix a possible buffer overrun when using natd support on old BSDs. Based on a patch from "Mr. Croup".
svn:r10760
2007-07-08 03:45:47 +00:00
Peter Palfrader
db3a4bf897
Call router_have_minimum_dir_info() at the beginning of router_add_to_routerlist() since it has side effects
...
svn:r10754
2007-07-06 21:21:09 +00:00
Peter Palfrader
39b1a11f8d
Remove two arguments from routerlist_replace(). idx, which is
...
the old router's index in the routerlist, can be gotten from the
old routerinfo itself anyway, and make_old always was true.
(There only is one caller of routerlist_replace())
svn:r10753
2007-07-06 18:40:39 +00:00
Nick Mathewson
e6ba07f8f5
r13634@catbus: nickm | 2007-07-06 14:20:50 -0400
...
Fix a crash bug (*the* crash bug?) on authorities. Backport candidate.
svn:r10752
2007-07-06 18:20:54 +00:00
Nick Mathewson
92b6e09082
r13633@catbus: nickm | 2007-07-06 11:08:19 -0400
...
Call tor_init_threads() from tor_init().
svn:r10751
2007-07-06 18:20:52 +00:00
Nick Mathewson
73b4428a8b
r13631@catbus: nickm | 2007-07-06 10:17:22 -0400
...
Try to fix win32 build again.
svn:r10750
2007-07-06 14:17:30 +00:00
Nick Mathewson
bbc7cf86d5
r13600@Kushana: nickm | 2007-07-05 23:49:47 -0400
...
try to fix mingw compile
svn:r10743
2007-07-06 03:49:57 +00:00
Nick Mathewson
a9469098ca
r13596@kushana: nickm | 2007-07-05 10:53:22 -0400
...
Argh, re-enable CRITICAL_SECTION code in win32.
svn:r10741
2007-07-05 14:53:27 +00:00
Nick Mathewson
5c9c420111
svn:r10740
2007-07-05 14:51:10 +00:00
Nick Mathewson
ae4ab0f617
r13454@kushana: nickm | 2007-06-20 14:22:44 -0400
...
Switch windows locking implementation to CRITICAL_SECTION, not Mutex: Mutex is heavier-weight, and meant for multi-process situations.
svn:r10739
2007-07-05 14:51:01 +00:00
Nick Mathewson
04c9ae8164
r13453@kushana: nickm | 2007-06-20 10:01:37 -0400
...
Fix a type error in the last checkin.
svn:r10738
2007-07-05 14:50:13 +00:00
Nick Mathewson
b5c8a6183a
r13452@kushana: nickm | 2007-06-20 09:52:55 -0400
...
Patch from Robert Hogan: Generate STREAM NEW events for dnsport requests and tunneled directory connections. Log when we are testing for hijacking.
svn:r10737
2007-07-05 14:50:05 +00:00
Roger Dingledine
99bfb1bebe
If there's a never-before-connected-to guard node in our list,
...
never choose any guards past it. This way we don't expand our
guard list unless we need to. [Bugfix in 0.1.2.x]
I'm not sure if this will solve all our problems, but it is at least
something.
svn:r10730
2007-07-02 22:15:26 +00:00
Roger Dingledine
5c1daed3ad
the non-controversial changes i found in my sandbox
...
svn:r10729
2007-07-02 22:07:53 +00:00
Nick Mathewson
32b165ab61
r13604@catbus: nickm | 2007-07-02 16:58:40 -0400
...
Some temporary output to try to figure out where bsd thread unit tests are going wrong
svn:r10728
2007-07-02 21:08:03 +00:00
Peter Palfrader
64f4cff192
I so wonder how this blows up on the real network - make _routerlist_find_elt be strict about the idx it is passed - if it is not -1 then it has to be correct
...
svn:r10727
2007-07-02 20:17:12 +00:00
Peter Palfrader
d071df748a
If we want to be more strict in _routerlist_find_elt I better call it properly
...
svn:r10726
2007-07-02 20:04:26 +00:00
Peter Palfrader
ccefd7404e
Don't get private with smartlists when there's a perfectly fine accessor method for num_used
...
svn:r10724
2007-07-02 19:45:44 +00:00
Peter Palfrader
f274c1413e
Make it build with -O0 as well
...
svn:r10722
2007-07-02 17:50:57 +00:00
Peter Palfrader
adff891463
Make DEBUG_SMARTLIST work
...
svn:r10721
2007-07-02 17:48:56 +00:00
Peter Palfrader
ea1348360e
Three more assertions which hopefully are sane, Nick? They might help track down #417 .
...
svn:r10720
2007-07-02 15:13:52 +00:00
Nick Mathewson
1bdcfd9203
r13570@catbus: nickm | 2007-06-30 20:41:05 -0400
...
Implement conditions in compat.c; switch windows to use "critical sections" instead of mutexes. Apparently, mutexes are for IPC and critical sections are for multithreaded.
svn:r10716
2007-07-01 16:22:45 +00:00
Nick Mathewson
8bebff3deb
r13568@catbus: nickm | 2007-06-30 15:18:18 -0400
...
allow test_threads() to time out
svn:r10711
2007-06-30 19:18:28 +00:00
Nick Mathewson
25a11bf8aa
r13555@catbus: nickm | 2007-06-30 14:05:36 -0400
...
Split "Util" tests into subgroups so I can see why freebsd trunk is failing.
svn:r10710
2007-06-30 18:06:00 +00:00
Nick Mathewson
a8a880e418
r13480@catbus: nickm | 2007-06-17 14:39:42 -0400
...
Oops; forgot to save a file in the last batch.
svn:r10646
2007-06-17 18:41:03 +00:00
Nick Mathewson
5adfa09fce
r13477@catbus: nickm | 2007-06-17 14:22:03 -0400
...
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere.
svn:r10645
2007-06-17 18:22:39 +00:00
Nick Mathewson
93f32db438
r13476@catbus: nickm | 2007-06-17 14:04:41 -0400
...
Build with fewer compiler warnings on Sun. (This and previous Sun patches are thanks to the tremendously handy services of unix-center.net.)
svn:r10644
2007-06-17 18:22:35 +00:00
Nick Mathewson
99792df645
r13473@catbus: nickm | 2007-06-17 13:42:36 -0400
...
Fix solaris eventdns.c behavior. This time, I think I got it. We were redefining _FILE_OFFSET_BITS, and thereby calling fstat64() on a struct stat, or something like that.
svn:r10643
2007-06-17 17:43:25 +00:00
Nick Mathewson
721899a447
r13471@catbus: nickm | 2007-06-17 11:59:25 -0400
...
Report address and por correctly on requests to dnsport. (Patch from Robert Hogan.)
svn:r10641
2007-06-17 15:59:27 +00:00
Nick Mathewson
d828915136
r13463@catbus: nickm | 2007-06-17 11:10:17 -0400
...
Add a SOURCE_ADDR field to STREAM NEW events so that controllers can match requests to applications. (Patch from Robert Hogan.)
svn:r10639
2007-06-17 15:10:51 +00:00
Nick Mathewson
3df7fc5e5a
r13438@catbus: nickm | 2007-06-15 15:01:42 -0400
...
document some functions
svn:r10637
2007-06-17 15:10:43 +00:00
Nick Mathewson
9e944d07f8
r13418@catbus: nickm | 2007-06-14 13:29:21 -0400
...
Adjust networkstatus_compute_consensus to take an argument saying how many voters there _should_ be.
svn:r10634
2007-06-17 15:10:23 +00:00
Roger Dingledine
237cdfdf48
if we already have a bridge in our state file, it won't be
...
in the networkstatuses, so we'll mark it unusable when we
load it, and then when we get a new routerinfo for it, we'll
still think it's unusable. fix that.
svn:r10612
2007-06-15 18:32:27 +00:00
Roger Dingledine
07ff5c6785
bugfix on r10609: don't fail asserts when closing circuits
...
that were connected to an unkeyed connection.
svn:r10611
2007-06-15 16:21:40 +00:00
Roger Dingledine
2cd293dc8f
now we can specify a bridge without specifying its key,
...
and we will still connect to it and use it. getting closer!
svn:r10609
2007-06-15 06:01:04 +00:00
Roger Dingledine
6a2f045163
extra points for making the function name reflect what it does
...
svn:r10608
2007-06-15 04:23:36 +00:00
Roger Dingledine
73f7310d9b
Directories no longer return a "304 not modified" when they don't
...
have the networkstatus the client asked for. Also fix a memory
leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
svn:r10607
2007-06-15 04:20:51 +00:00
Roger Dingledine
9f9ee13dc0
point out a bug in our If-Modified-Since handling in 0.2.0.2-alpha.
...
svn:r10605
2007-06-15 03:14:02 +00:00
Roger Dingledine
3d641bde0e
Refine r10571: more work on bridge stuff.
...
- Only listen to responses for "authority" fetches if we're configured
to use Bridges. Otherwise it's safe (and maybe smarter) to silently
discard them like we used to.
- React faster to download networkstatuses after the first bridge
descriptor arrives.
- Don't do dir fetches before we have any bridges, even when our
dirport is open.
svn:r10604
2007-06-15 02:12:15 +00:00
Nick Mathewson
9a74e881ef
r13413@catbus: nickm | 2007-06-13 18:44:28 -0400
...
Non-static inline functions cant talk about static variables.
svn:r10599
2007-06-13 22:44:30 +00:00
Nick Mathewson
a8e88adba4
r13410@catbus: nickm | 2007-06-13 18:39:05 -0400
...
Fix compilation on compilers that do not allow you to typedef the same type twice.
svn:r10598
2007-06-13 22:39:10 +00:00
Nick Mathewson
649a802322
r13409@catbus: nickm | 2007-06-13 18:01:56 -0400
...
Test the remainder of the contents of the consensus; fix a bug in geneating addresses on routerstatuses.
svn:r10597
2007-06-13 22:39:08 +00:00
Nick Mathewson
c2ea3e9aea
r13406@catbus: nickm | 2007-06-13 17:05:30 -0400
...
Oops; linked connections get read/write events too.
svn:r10596
2007-06-13 21:05:32 +00:00
Nick Mathewson
6462683669
r13403@catbus: nickm | 2007-06-13 16:15:44 -0400
...
Test all of consensus contents, except for routerstatus_list contents. And signatures.
svn:r10593
2007-06-13 20:17:27 +00:00
Nick Mathewson
4b162fd1f4
r13401@catbus: nickm | 2007-06-13 15:50:16 -0400
...
Add dnsport connection to the global connection list. (Bug found by mwenge.)
svn:r10592
2007-06-13 19:50:18 +00:00
Nick Mathewson
eab7c6890d
r13399@catbus: nickm | 2007-06-13 15:17:44 -0400
...
Hm. Tor should never need private authority identity keys; thus, I should not actually load the authority identity keys for testing.
svn:r10591
2007-06-13 19:17:46 +00:00
Nick Mathewson
3fa9a90243
r13396@catbus: nickm | 2007-06-13 15:06:18 -0400
...
Set vote_digest field prproperly in networkstatus_vote_t, so that it gets conveyed to the consensus correctly.
svn:r10590
2007-06-13 19:06:26 +00:00
Nick Mathewson
c3626cdba7
r13395@catbus: nickm | 2007-06-13 15:01:23 -0400
...
Unit tests and debugging for generating and parsing consensus networkstatus documents. Still need to test actual contents.
svn:r10589
2007-06-13 19:06:23 +00:00
Nick Mathewson
05cf945a1c
r13393@catbus: nickm | 2007-06-13 14:29:14 -0400
...
More vote unit tests: check that we are parsing routerstatuses correctly.
svn:r10588
2007-06-13 18:29:16 +00:00
Nick Mathewson
0cf38ddef6
r13387@catbus: nickm | 2007-06-13 14:15:49 -0400
...
Unit tests and debugging for vote generation and parsing code.
svn:r10587
2007-06-13 18:16:05 +00:00
Nick Mathewson
09a370e45f
r13386@catbus: nickm | 2007-06-13 14:15:20 -0400
...
New helper file for test.c: contains 3 generated certs, signing keys, and id_keys
svn:r10586
2007-06-13 18:16:01 +00:00
Nick Mathewson
300678221a
r13385@catbus: nickm | 2007-06-13 14:14:47 -0400
...
In tor-gencert, write BEGIN SIGNATURE, not BEGIN_SIGNATURE.
svn:r10585
2007-06-13 18:15:59 +00:00
Nick Mathewson
546209a4de
r13384@catbus: nickm | 2007-06-13 13:53:26 -0400
...
make test_* functions stop conflicting with variables named v1 and v2.
svn:r10584
2007-06-13 18:15:56 +00:00
Nick Mathewson
3637ee0e59
r13383@catbus: nickm | 2007-06-13 13:53:04 -0400
...
Expose a function to parse a private key from a string as CRYPTO_PRIVATE. For testing.
svn:r10583
2007-06-13 18:15:53 +00:00
Roger Dingledine
af658b7828
More work towards making bridge users able to connect via bridges:
...
- demand options->Bridges and options->TunnelDirConns if
options->UseBridges is set.
- after directory fetches, accept descriptors that aren't referenced by
our networkstatuses, *if* they're for a configured bridge.
- delay directory fetching until we have at least one bridge descriptor.
- learn how to build a one-hop circuit when we have neither routerinfo
nor routerstatus for our destination.
- teach directory connections how to pick a bridge as the destination
directory when doing non-anonymous fetches.
- tolerate directory commands for which the dir_port is 0.
- remember descriptors when the requested_resource was "authority",
rather than just ignoring them.
- put bridges on our entry_guards list once we have a descriptor for them.
When UseBridges is set, only pick entry guards that are bridges. Else
vice versa.
svn:r10571
2007-06-12 09:17:23 +00:00
Roger Dingledine
622dd4927e
change the BandwidthRate/BandwidthBurst in the torrc
...
to RelayBandwidthRate/RelayBandwidthBurst, since that's
what most users will actually want. also flesh out the
torrc.complete entries and fix a few typos. based on
patch from "Armedblowfish".
svn:r10570
2007-06-12 08:19:02 +00:00
Peter Palfrader
c0b28adc65
Resetting the correct stats
...
svn:r10569
2007-06-12 01:09:53 +00:00
Nick Mathewson
a21381affa
r13364@catbus: nickm | 2007-06-11 20:15:53 -0400
...
Stop assuming that desc_by_eid_map works: in fact, it kinda doesn't. Add a big comment explaining why.
svn:r10567
2007-06-12 00:15:55 +00:00
Nick Mathewson
399890307d
r13362@catbus: nickm | 2007-06-11 19:00:23 -0400
...
Fix a warning on platforms where sizeof(size_t)==8, but sizeof(unsigned long)<8.
svn:r10566
2007-06-11 23:00:26 +00:00
Nick Mathewson
dddf065e62
r13358@catbus: nickm | 2007-06-11 18:46:24 -0400
...
Fix some dumb copypasta in r10562.
svn:r10565
2007-06-11 22:46:35 +00:00
Peter Palfrader
f621513cad
Remove an #undef, so you can -Ddefine stuff on the command line
...
svn:r10564
2007-06-11 22:32:30 +00:00
Nick Mathewson
367a77459a
r13355@catbus: nickm | 2007-06-11 18:19:34 -0400
...
Make all the digestmaps inside routerlist_t use the new typechecking wrappers, so we can catch any more bugs like the one fixed by 10561. This turned up a bug in routerlist_remove: we were extracting a routerinfo_t from desc_digest_map. Fix that too, though it was probably harmless, since we were only doing a pointer comparison with it.
svn:r10563
2007-06-11 22:19:40 +00:00
Nick Mathewson
f45732513e
r13354@catbus: nickm | 2007-06-11 18:17:40 -0400
...
Add typechecking wrappers to digestmap, so we can work with "map from digest to [FOO]" for arbitrary FOOs and still have some typesafety.
svn:r10562
2007-06-11 22:19:37 +00:00
Nick Mathewson
bde82e737b
r13352@catbus: nickm | 2007-06-11 17:42:45 -0400
...
Since desc_by_eid_map hold server descriptors, do not add routerinfo_ts. Bug found by weasel
svn:r10561
2007-06-11 21:42:48 +00:00
Peter Palfrader
e91cab20dd
Reorder routerlist_assert_ok() and routerlist_check_bug_417(), so if the assert_ok triggers we know that our bug_417 is wrong
...
svn:r10560
2007-06-11 19:46:23 +00:00
Nick Mathewson
932f2c79eb
r13338@catbus: nickm | 2007-06-10 15:13:32 -0400
...
Fix bug in 10533: put "opt v" line at the end of a routerstatus section; overwriting is bad.
svn:r10549
2007-06-10 19:13:40 +00:00
Roger Dingledine
04995f197d
more building blocks towards being able to fetch bridge descriptors
...
svn:r10548
2007-06-10 07:34:21 +00:00
Roger Dingledine
1ae7708ff8
discard the "bridge list" stubs that i hope i never need.
...
svn:r10547
2007-06-10 00:30:14 +00:00
Roger Dingledine
a97c3b8c2d
Be clearer on the various roles for auth dir types.
...
Bridge authorities no longer write bridge descriptors to their
cached-routers file -- this gets complex because of extrainfo documents.
svn:r10545
2007-06-09 07:05:19 +00:00
Roger Dingledine
8dfde75ef6
don't complain when approved-routers isn't there and we
...
don't need it.
svn:r10544
2007-06-09 05:28:11 +00:00
Roger Dingledine
eebeda2c71
scrub out some more references to the misnamed 'bridge' concept
...
svn:r10543
2007-06-09 05:17:33 +00:00
Roger Dingledine
15270358eb
bump to 0.2.0.2-alpha-dev
...
svn:r10542
2007-06-09 04:35:51 +00:00
Nick Mathewson
19389a3674
r13328@catbus: nickm | 2007-06-08 17:14:55 -0400
...
Arg. Irix apparently #defines sa_family to something. Thus, naming fields or variables "sa_family" will not work.
svn:r10541
2007-06-08 21:14:58 +00:00
Nick Mathewson
1d6db7ec3d
r13325@catbus: nickm | 2007-06-08 15:02:37 -0400
...
Parse networkstatuses (v2, vote, and consensus) after generating them, and fail fast if there is a parse error.
svn:r10540
2007-06-08 19:02:39 +00:00
Nick Mathewson
2bb7005481
r13317@catbus: nickm | 2007-06-08 14:39:59 -0400
...
bugfix: we were undercounting the number of authorities that recommended any given version by 1. Backport candidate.
svn:r10537
2007-06-08 18:41:19 +00:00
Nick Mathewson
678110570a
r13315@catbus: nickm | 2007-06-08 14:33:24 -0400
...
Make versions get added to networkstatuses correctly again.
svn:r10535
2007-06-08 18:41:14 +00:00
Nick Mathewson
171969656c
r13314@catbus: nickm | 2007-06-08 14:30:31 -0400
...
Enfore that known_flags in networkstatus votes must be unique.
svn:r10534
2007-06-08 18:41:12 +00:00
Nick Mathewson
7a6f3cd223
r13313@catbus: nickm | 2007-06-08 14:23:11 -0400
...
Refactor v3 vote generation code into "build a networkstatus_vote_t" and "format a networkstatus_vote_t". This should make testing possible.
svn:r10533
2007-06-08 18:41:09 +00:00
Nick Mathewson
1b200de0ef
r13304@catbus: nickm | 2007-06-07 13:25:37 -0400
...
Deprecate RedirectExits.
svn:r10526
2007-06-07 17:26:19 +00:00
Nick Mathewson
529cbe34b0
r13292@catbus: nickm | 2007-06-06 17:34:15 -0400
...
Check for non-standard SVK directories properly. Inspired by debian bug #420899 and related discussion on SVK list.
svn:r10522
2007-06-07 16:14:55 +00:00
Roger Dingledine
8db1b61a26
avoid leaking memory in a path never followed. pointed out
...
by robert watson.
svn:r10521
2007-06-07 15:07:33 +00:00
Nick Mathewson
6673d445f5
r13283@catbus: nickm | 2007-06-06 01:43:44 -0400
...
Fix up a couple of loops flagged by -Wunsafe-loop-optimizations so that they are more readable (and more amenable to compilation)
svn:r10513
2007-06-06 13:02:22 +00:00
Nick Mathewson
1a29d68081
r13276@catbus: nickm | 2007-06-05 19:45:33 -0400
...
Remove another long-dead #if 0 I missed before
svn:r10511
2007-06-06 04:51:33 +00:00
Nick Mathewson
d3b140b0de
r13275@catbus: nickm | 2007-06-05 19:11:05 -0400
...
Apply my sekrit "unused macro detector" script to hunt down some macros we didnt use.
svn:r10510
2007-06-06 04:51:30 +00:00
Nick Mathewson
1866ad3506
r13274@catbus: nickm | 2007-06-05 19:06:30 -0400
...
Remove some deadcode that seems unlikely to return
svn:r10509
2007-06-06 04:51:25 +00:00
Nick Mathewson
0a27f02b9c
r13267@catbus: nickm | 2007-06-05 16:54:20 -0400
...
Man page and small tweaks for last patch.
svn:r10505
2007-06-05 20:54:53 +00:00
Nick Mathewson
210beff55a
r13266@catbus: nickm | 2007-06-05 16:38:08 -0400
...
Patch from peter palfrader: control interface via unix domain socket
svn:r10504
2007-06-05 20:54:49 +00:00
Nick Mathewson
f0345d46f6
r13256@catbus: nickm | 2007-06-05 10:57:41 -0400
...
Mark fields that need to be ipv6-ified.
svn:r10503
2007-06-05 20:54:23 +00:00
Peter Palfrader
b6c6dd7e55
Change an assert into a tor_assert
...
svn:r10495
2007-06-05 01:09:09 +00:00
Nick Mathewson
23ae5976f3
r13254@catbus: nickm | 2007-06-04 20:13:47 -0400
...
When choosing a guard, weight by bandwidth. Resolves bug 440.
svn:r10493
2007-06-05 00:15:00 +00:00
Nick Mathewson
2e0713222b
r13252@catbus: nickm | 2007-06-04 18:57:21 -0400
...
Code to check signatures on consensus directories.
svn:r10492
2007-06-04 22:57:23 +00:00
Nick Mathewson
8b0e6a4466
r13250@catbus: nickm | 2007-06-04 18:28:55 -0400
...
Adapt code to parse v3 networkstatus votes so it can also parse a consensus. Make networkstatus_vote_t the catch-all type for votes and conensuses. Correct/clarify the second argument to directory-signature.
svn:r10491
2007-06-04 22:29:00 +00:00
Nick Mathewson
8d1224eb51
r13248@catbus: nickm | 2007-06-04 15:53:23 -0400
...
More code to generate a consensus from a list of votes. Now, we handle Named, and we actually generate and sign the signed consensus. Yippee. Still needs testing. Still not actually called.
svn:r10490
2007-06-04 19:54:02 +00:00
Nick Mathewson
bb6f53d60c
r13243@catbus: nickm | 2007-06-04 15:17:15 -0400
...
Start of code to compute consensus network-status stuff from a bunch of votes. Strangely, it does not yet feel like an enormous ugly hack.
svn:r10489
2007-06-04 19:19:01 +00:00
Peter Palfrader
32d12dcfbc
Fix retry_all_listeners() and retry_listeners() description to match code. We are smarter than comparing lengths of want- and have-listeners.
...
svn:r10487
2007-06-04 16:58:57 +00:00
Peter Palfrader
502879e0b4
Remove force flag from retry_all_listeners() and retry_listeners(). It always was 0.
...
svn:r10486
2007-06-04 16:54:42 +00:00
Nick Mathewson
6faa9e2641
r13239@catbus: nickm | 2007-06-04 11:30:37 -0400
...
Fix the fix for bug 445: set umask properly. Also use open+fdopen rather than just umask+fopen, and create authority identity key with mode 400.
svn:r10485
2007-06-04 15:30:40 +00:00
Roger Dingledine
80e675deb1
Stop tearing down the whole circuit when the user asks for a
...
connection to a port that the hidden service didn't configure.
Resolves bug 444.
svn:r10478
2007-06-04 03:13:13 +00:00
Nick Mathewson
cb0324c400
r13191@catbus: nickm | 2007-06-03 19:38:18 -0400
...
Set umask(0700) when starting tor-gencert; resolves bug 445.
svn:r10475
2007-06-03 23:38:20 +00:00
Nick Mathewson
6d447e04a2
r13189@catbus: nickm | 2007-06-03 19:08:01 -0400
...
Oops. Only bind ports and start libevent if we are actually running Tor.
svn:r10474
2007-06-03 23:08:07 +00:00
Nick Mathewson
d3ee41619c
r13186@catbus: nickm | 2007-06-03 19:00:20 -0400
...
Bind ports before setuid/setgid.
svn:r10473
2007-06-03 23:00:26 +00:00
Nick Mathewson
147e439c94
r13174@catbus: nickm | 2007-06-03 17:39:20 -0400
...
Patch from robert hogan: avoid crash when DNS port is set more than once.
svn:r10471
2007-06-03 21:39:24 +00:00
Nick Mathewson
f4ce7f9c9b
r13166@catbus: nickm | 2007-06-02 23:02:40 -0400
...
First cut at code to parse and validate v3 networkstatus votes.
svn:r10461
2007-06-03 03:05:10 +00:00
Nick Mathewson
e0d828299a
r13165@catbus: nickm | 2007-06-02 22:55:22 -0400
...
Remove an obsoleted function
svn:r10460
2007-06-03 03:05:07 +00:00
Roger Dingledine
0b73569dc6
bump to 0.2.0.2-alpha and declare that today is the day
...
svn:r10456
2007-06-02 23:56:04 +00:00
Nick Mathewson
d216133c8e
r13163@catbus: nickm | 2007-06-02 16:41:07 -0400
...
We do "-alpha-dev" now, not "-alpha-cvs".
svn:r10455
2007-06-02 20:41:10 +00:00
Roger Dingledine
f6880cbc6b
bump to 0.2.0.1-alpha-cvs while we're in transition
...
svn:r10454
2007-06-02 20:22:42 +00:00
Roger Dingledine
1407cf9de3
fix up a comment
...
svn:r10453
2007-06-02 20:22:31 +00:00
Nick Mathewson
c2dc8f4623
r13158@catbus: nickm | 2007-06-02 11:40:05 -0400
...
On systems with svk, do not clobber micro-revision.i when building from a tarball.
svn:r10452
2007-06-02 15:40:10 +00:00
Nick Mathewson
aee7f01624
r13154@catbus: nickm | 2007-06-02 11:26:44 -0400
...
Server-side support for If-Modified-Since in HTTP requsts for v1 stuff, and for network-status documents.
svn:r10451
2007-06-02 15:26:57 +00:00
Nick Mathewson
8400cecb1d
r13148@catbus: nickm | 2007-06-02 10:24:20 -0400
...
Fix bug 441, 442, and possibly 417 (again).
svn:r10449
2007-06-02 14:24:23 +00:00
Nick Mathewson
2ef3e7853b
r13144@catbus: nickm | 2007-06-02 08:44:42 -0400
...
Add some asserts to catch double-insert on routerlist.
svn:r10445
2007-06-02 12:44:57 +00:00
Nick Mathewson
5b6d7f10f3
r13143@catbus: nickm | 2007-06-01 16:43:40 -0400
...
Try to fix some mipspro compiler warnings. There will still be some left.
svn:r10444
2007-06-02 12:44:54 +00:00
Nick Mathewson
7c3f418e39
r13139@catbus: nickm | 2007-06-01 14:02:40 -0400
...
Add some ;trues, and tabify.
svn:r10441
2007-06-01 18:02:41 +00:00
Nick Mathewson
6df38f52db
r13137@catbus: nickm | 2007-06-01 13:49:34 -0400
...
Ah. Of course. You spell "is there an svn" as 'test -x "`which svn 2>&1`"'. Perfectly reasonable. Don't know why I didn't think of it in the first place.
svn:r10440
2007-06-01 17:49:37 +00:00
Nick Mathewson
0af91800f9
r13131@catbus: nickm | 2007-06-01 06:20:29 -0400
...
Test for ~/.svk/local, not ~/.svk. Eschew use of test -a and test -o. Bulletproof more against odd shells.
svn:r10439
2007-06-01 10:20:37 +00:00
Roger Dingledine
e64750e9a3
bump to 0.2.0.1-alpha
...
svn:r10437
2007-06-01 07:33:39 +00:00
Nick Mathewson
6bb65fa371
r13121@catbus: nickm | 2007-05-31 20:06:40 -0400
...
Oops. Different inet_ntop implementations seem to differ on whether, in an IPv6 address with a single "0" word, that word should be written as 0, or omitted. Fix the unit tests to account for that.
svn:r10432
2007-06-01 00:06:45 +00:00
Roger Dingledine
b1ee20f0e8
trivial changes from my sandbox
...
svn:r10429
2007-05-31 23:57:46 +00:00
Nick Mathewson
3b4fa59b60
r13117@catbus: nickm | 2007-05-31 19:40:32 -0400
...
Patch from Tup: treat RESOLVED_TYPE_ERROR_TRANSIENT as a SERVERFAILED, and RESOLVED_TYPE_ERROR as NOTEXIST. Generate transient/nontransient errors more sensibly. Set flags better on DNS replies.
svn:r10427
2007-05-31 23:40:35 +00:00
Nick Mathewson
534c55f531
r13111@catbus: nickm | 2007-05-31 15:03:41 -0400
...
Cleanup whitespace.
svn:r10425
2007-05-31 19:03:49 +00:00
Nick Mathewson
71c0a13703
r13110@catbus: nickm | 2007-05-31 15:03:24 -0400
...
Fix windows build.
svn:r10424
2007-05-31 19:03:46 +00:00
Nick Mathewson
884cb0c7a1
r13109@catbus: nickm | 2007-05-31 14:59:30 -0400
...
More code for voting and vote parsing (checkpointing)
svn:r10423
2007-05-31 19:03:44 +00:00
Nick Mathewson
5d4b426a33
r13103@catbus: nickm | 2007-05-31 14:40:18 -0400
...
Fix patch r10411; fix from robert hogan.
svn:r10422
2007-05-31 18:48:31 +00:00
Nick Mathewson
77502ac82d
r13102@catbus: nickm | 2007-05-31 13:56:25 -0400
...
Make "authdir_newdesc rejected" work again.
svn:r10421
2007-05-31 18:48:28 +00:00
Nick Mathewson
4061b2cbd1
r13101@catbus: nickm | 2007-05-31 12:57:42 -0400
...
Unit tests [and debugging] for tor_inet_ntop() and tor_inet_pton()
svn:r10420
2007-05-31 18:48:25 +00:00
Nick Mathewson
1cb1ebbfe0
r13090@catbus: nickm | 2007-05-30 03:17:57 -0400
...
If the user makes a torrc that exceeds the bandwidth cap by one byte, let them have it.
svn:r10411
2007-05-30 07:18:00 +00:00
Nick Mathewson
8b1e9398a8
r13079@catbus: nickm | 2007-05-29 17:05:38 -0400
...
Oops. Authorities should recommend nodes as exits.
svn:r10403
2007-05-29 21:05:49 +00:00
Nick Mathewson
4cd93bd9ec
r13071@catbus: nickm | 2007-05-29 15:54:46 -0400
...
Aaargh. Revert accidentally-committed debugging code in last patch.
svn:r10400
2007-05-29 19:54:54 +00:00
Nick Mathewson
1359871c14
r13070@catbus: nickm | 2007-05-29 15:53:21 -0400
...
Fix handling of resolves with very long or otherwise malformed addresses, and comment dns_resolve better, and stop making what should be a BUG warning into an assert(0). This fixes bug 427, which was introduced around 9900/9931/9932. Not a backport candidate: 0.1.2.x never had this bug.
svn:r10399
2007-05-29 19:54:51 +00:00
Nick Mathewson
3f9afa0625
r13068@catbus: nickm | 2007-05-29 14:58:13 -0400
...
Add some code to mitigate bug 393: Choose at random from multiple hidden service ports with the same virtport. This allows limited ad-hoc round-robining.
svn:r10398
2007-05-29 18:58:16 +00:00
Nick Mathewson
e11a92bd54
r13058@catbus: nickm | 2007-05-29 14:39:53 -0400
...
Note that the fix for bug 222 should technically be turned into a real fix, not a kludge, one of these days.
svn:r10397
2007-05-29 18:39:59 +00:00
Nick Mathewson
c5b3a8db84
r13057@catbus: nickm | 2007-05-29 14:39:27 -0400
...
fix for bug 439: make _sure_ *msg is set when we leave dirserv_add_multiple_descriptors().
svn:r10396
2007-05-29 18:39:56 +00:00
Nick Mathewson
e5ed434c42
r13054@catbus: nickm | 2007-05-29 14:20:50 -0400
...
An even better workaround for the probably-already-fixed bug 222.
svn:r10395
2007-05-29 18:21:00 +00:00
Nick Mathewson
9d1af71b70
r13053@catbus: nickm | 2007-05-29 13:35:33 -0400
...
Move connection_should_read_from_linked_conn into main.c, which is the only file that uses it.
svn:r10394
2007-05-29 18:20:56 +00:00
Nick Mathewson
f89a3b1448
r13050@catbus: nickm | 2007-05-29 13:31:11 -0400
...
Resolve all but 3 DOCDOCs.
svn:r10393
2007-05-29 17:31:13 +00:00
Nick Mathewson
69c712f189
r13048@catbus: nickm | 2007-05-29 11:08:53 -0400
...
Oops; better version of previous patch that does not get caught in an infinite loop.
svn:r10391
2007-05-29 15:08:55 +00:00
Nick Mathewson
fd3aa5c85d
r13046@catbus: nickm | 2007-05-29 11:07:12 -0400
...
Stop adding bogus entries to lists in router_parse_list_from_string(). I wonder which bugs _that_ caused.
svn:r10390
2007-05-29 15:07:16 +00:00
Nick Mathewson
916e98d3fa
r13042@catbus: nickm | 2007-05-29 10:41:10 -0400
...
oops; use tor_inet_aton rather than inet_aton in tor_inet_ntop. Spotted by Li-Hui Zhou.
svn:r10389
2007-05-29 14:41:24 +00:00
Nick Mathewson
63035cdb33
r13041@catbus: nickm | 2007-05-29 10:40:05 -0400
...
More messing around to try to address possible root causes of bug 436.
svn:r10388
2007-05-29 14:41:20 +00:00
Nick Mathewson
d509efb9b7
r13019@catbus: nickm | 2007-05-27 12:32:55 -0400
...
Merge an evdns fix from libevent r357: "evdns_shutdown fix from adam langley.
svn:r10387
2007-05-29 14:41:16 +00:00
Peter Palfrader
3425f2c11f
Segfault less. Somebody needs to look over why exactly this helps. re #436
...
svn:r10376
2007-05-28 21:34:42 +00:00
Roger Dingledine
64b0d7202e
also remove these obsolete torrcs
...
svn:r10362
2007-05-27 06:07:51 +00:00
Roger Dingledine
1ab216eb2f
what the heck is this obsolete dirservers file still doing here?
...
svn:r10361
2007-05-27 06:06:01 +00:00
Roger Dingledine
c1101fceeb
we were leaking a few megabytes a minute checking signatures
...
svn:r10359
2007-05-27 04:38:50 +00:00
Roger Dingledine
e13bf01a9f
fix a seg fault when my auth dirserver accepted a posted descriptor
...
(dirserv_add_multiple_descriptors doesn't set msg if there's no
failure.)
svn:r10358
2007-05-27 03:41:09 +00:00
Roger Dingledine
c8fd65a936
If Tor is invoked from something that isn't a shell (e.g. Vidalia),
...
now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
svn:r10351
2007-05-26 08:04:15 +00:00
Nick Mathewson
b0be93c8b0
r12988@catbus: nickm | 2007-05-25 20:15:56 -0400
...
socklen_t is a silly type anyway. Just use int as the argument for evdns_server_request_get_requesting_addr.
svn:r10347
2007-05-26 00:15:58 +00:00
Roger Dingledine
0f71ade42f
fix compile on bsd
...
svn:r10339
2007-05-25 21:56:47 +00:00
Roger Dingledine
0c047b87f5
polish r9933-r9994
...
svn:r10335
2007-05-25 19:41:31 +00:00
Roger Dingledine
a19d131ed7
i suspect we would trigger asserts if we answer a cached
...
resolve request. this should help that.
svn:r10334
2007-05-25 19:30:07 +00:00
Roger Dingledine
32f5e19168
remove an obsolete notion that we judge runningness based on
...
whether we have a connection open to the server right now.
svn:r10333
2007-05-25 19:22:26 +00:00
Nick Mathewson
368eb6a97a
r12964@catbus: nickm | 2007-05-25 14:49:23 -0400
...
hack to make reverse lookups work with dnsport. note that it is a hack. note some trouble spots.
svn:r10332
2007-05-25 18:49:26 +00:00
Roger Dingledine
ce59d5a632
also change purpose_is_private to purpose_needs_anonymity
...
svn:r10331
2007-05-25 18:40:09 +00:00
Roger Dingledine
6e216ed7ef
karsten got confused by private_connection, so try calling
...
it anonymized_connection instead.
svn:r10330
2007-05-25 18:25:33 +00:00
Nick Mathewson
ba4969a59e
r12959@catbus: nickm | 2007-05-25 14:22:33 -0400
...
The second time that we resolve a.com and get 1.2.3.4, return an A record mapping (a->1.2.3.4), not mapping (1.2.3.4->1.2.3.4).
svn:r10329
2007-05-25 18:22:43 +00:00
Nick Mathewson
527fbc304e
r12958@catbus: nickm | 2007-05-25 14:19:29 -0400
...
Fix more dnsport bugs: set state correctly, and actually cache the answers.
svn:r10328
2007-05-25 18:22:42 +00:00
Nick Mathewson
5f226f130c
r12957@catbus: nickm | 2007-05-25 14:11:02 -0400
...
Fix a dnsserv bug: mark the connectino as "finished handshaking" once dnsserv_resolved is called.
svn:r10327
2007-05-25 18:22:39 +00:00
Nick Mathewson
bb524e99c9
r12955@catbus: nickm | 2007-05-25 13:17:30 -0400
...
First bare stubs of ipv6 work: commit some (untested, hence doublessly broken) implementations of inet_ntop/pton for systems that lack them.
svn:r10326
2007-05-25 18:22:37 +00:00
Nick Mathewson
39fe91b9a2
r12946@catbus: nickm | 2007-05-25 10:46:50 -0400
...
Add an AutomapHostsOnResolve option. It seems to work.
svn:r10324
2007-05-25 14:48:16 +00:00
Nick Mathewson
e9c294654d
r12945@catbus: nickm | 2007-05-25 10:37:12 -0400
...
Add a "force" option to tor-resolve so we can make it look up .onion addresses if we know that this will create a virtual mapping we want.
svn:r10323
2007-05-25 14:48:12 +00:00
Roger Dingledine
7127c30f46
irix64's cc doesn't think hibernate_state_t is necessarily an int.
...
good point.
svn:r10320
2007-05-24 23:51:08 +00:00
Roger Dingledine
42d7b0877d
forward-port r10318
...
svn:r10319
2007-05-24 23:39:04 +00:00
Nick Mathewson
703bf19620
r12942@catbus: nickm | 2007-05-24 16:31:22 -0400
...
Well, that was easier than I thought it would be. Tor is now a DNS proxy as well as a socks proxy. Probably some bugs remain, but since it A) has managed to resolve one address for me successfully, and B) will not affect anybody who leaves DNSPort unset, it feel like a good time to commit.
svn:r10317
2007-05-24 20:31:30 +00:00
Nick Mathewson
17830bc03b
r12941@catbus: nickm | 2007-05-24 16:25:00 -0400
...
Fix some eventdns dns server bugs, and add a new eventdns function to get the address of whoever requested this lookup.
svn:r10316
2007-05-24 20:31:27 +00:00
Nick Mathewson
a312afd67e
r12936@catbus: nickm | 2007-05-24 14:12:34 -0400
...
Review XXXX comments without a version; upgrade some to XXXX020.
svn:r10315
2007-05-24 18:12:52 +00:00
Nick Mathewson
56aefe8d23
r12935@catbus: nickm | 2007-05-24 14:12:04 -0400
...
dir-signing-key should never take arguments.
svn:r10314
2007-05-24 18:12:44 +00:00
Nick Mathewson
9aaf3d182f
r12934@catbus: nickm | 2007-05-24 14:11:18 -0400
...
When freeing slack buffers, free the buffers at the end of the freelist first.
svn:r10313
2007-05-24 18:12:41 +00:00
Nick Mathewson
79707437d9
r12933@catbus: nickm | 2007-05-24 14:10:28 -0400
...
Optimize digestmap_set, since it sometimes shows up in profiles. Seems to work so far, but it isnt the prettiest thing ever.
svn:r10312
2007-05-24 18:12:38 +00:00
Nick Mathewson
687461d36c
r12920@catbus: nickm | 2007-05-24 13:12:52 -0400
...
and remove an XXX012.
svn:r10308
2007-05-24 17:13:08 +00:00
Nick Mathewson
212a3c3478
r12919@catbus: nickm | 2007-05-24 13:04:56 -0400
...
backport candidate: Warn when using a version of libevent before 1.3b to run a server on osx or bsd: these versions of libevent interact badly with userspace threads.
svn:r10307
2007-05-24 17:13:05 +00:00
Nick Mathewson
4c6398a8f0
r12918@catbus: nickm | 2007-05-24 12:52:40 -0400
...
Make reset_download_failures() reset extrainfo download status too.
svn:r10306
2007-05-24 17:13:02 +00:00
Nick Mathewson
3980ebd6a1
r12917@catbus: nickm | 2007-05-24 12:48:47 -0400
...
Put the hash-as-signed, not the raw hash, in the signed_descriptor_digest field of our own descriptor. Backport candidate; probably harmless though.
svn:r10305
2007-05-24 17:13:00 +00:00
Nick Mathewson
d3d86b17a7
r12916@catbus: nickm | 2007-05-24 12:43:45 -0400
...
Add math functions to round values to the nearest power of 2. Make mempools more careful about making sure that the size of their chunks is a little less than a power of 2, not a little more.
svn:r10304
2007-05-24 17:12:57 +00:00
Nick Mathewson
d0a5c4f984
r12915@catbus: nickm | 2007-05-24 12:12:34 -0400
...
Do not send a warning when somebody uploads an extrainfo that we will reject, if it happens to be newer than our current routerdesc.
svn:r10303
2007-05-24 17:12:54 +00:00
Nick Mathewson
ca9e13f2a0
r12906@catbus: nickm | 2007-05-22 20:43:13 -0400
...
s/32/64/; s/breaks/works/;
svn:r10297
2007-05-23 00:43:20 +00:00
Roger Dingledine
e583827d60
new ip addresses for moria1 and moria2; new ports for moria2
...
svn:r10296
2007-05-22 23:51:39 +00:00
Nick Mathewson
38300735cd
r12902@catbus: nickm | 2007-05-22 14:52:29 -0400
...
First draft of code to generate votes. needs testing. does not yet upload or serve votes. Shares most of its code with the old generate_v2_networkstatus.
svn:r10295
2007-05-22 18:52:32 +00:00
Nick Mathewson
9e0acc0c11
r12899@catbus: nickm | 2007-05-22 13:51:26 -0400
...
Extract common code from networkstatus_getinfo_helper_single() and generate_v2_networkstatus().
svn:r10294
2007-05-22 17:58:30 +00:00
Nick Mathewson
c9fa4e6583
r12898@catbus: nickm | 2007-05-22 13:11:04 -0400
...
More v3 directory code: have authorities load certificates; have everybody store certificates to disk and load them; provide a way to configure v3 authorities.
svn:r10293
2007-05-22 17:58:25 +00:00
Nick Mathewson
6975a093e9
r12853@catbus: nickm | 2007-05-22 11:36:54 -0400
...
Make connection_array into a smartlist.
svn:r10292
2007-05-22 15:49:14 +00:00
Nick Mathewson
e935d73b34
r12852@catbus: nickm | 2007-05-22 11:00:27 -0400
...
Use svn revisions consistently throughout all log messages.
svn:r10291
2007-05-22 15:48:46 +00:00
Nick Mathewson
4ec5e139c8
r12850@catbus: nickm | 2007-05-21 22:20:42 -0400
...
Partial backport candidate: do not rely on finding a \0 after an mmaped() router/extrainfo file. Also, set journal length correctly when starting up.
svn:r10248
2007-05-22 02:20:52 +00:00
Nick Mathewson
d23cb33a1a
r12846@catbus: nickm | 2007-05-21 21:55:15 -0400
...
Oops; it is possible to have an empty store.
svn:r10247
2007-05-22 01:55:50 +00:00
Nick Mathewson
0cb342e859
r12844@catbus: nickm | 2007-05-21 21:52:19 -0400
...
Oops. It compiles better when you spell the fields right.
svn:r10245
2007-05-22 01:52:22 +00:00
Nick Mathewson
32c8d94c12
r12842@catbus: nickm | 2007-05-21 21:51:45 -0400
...
Partial backport candidate. Fix issue noted in r10241: stores were rebuilt too often. Also notes dropped bytes better.
svn:r10244
2007-05-22 01:51:53 +00:00
Roger Dingledine
590a98ff37
clean up r10240 so we avoid the exit node itself too
...
svn:r10242
2007-05-22 01:20:23 +00:00
Roger Dingledine
b89ad9eb1b
mark a bug for nick to tackle -- we're rebuilding our router store more
...
often than we need to. reported by lodger.
svn:r10241
2007-05-22 01:17:08 +00:00
Roger Dingledine
6ede110c4d
When choosing an entry guard for our circuit, avoid using guards
...
that are in the same family as the chosen exit -- not just guards
that are exactly the chosen exit. (Reported by lodger.)
svn:r10240
2007-05-22 01:01:24 +00:00
Roger Dingledine
82054e0dd2
Make the NodeFamilies config option work. (Reported by
...
lodger -- it has never actually worked, even though we added it
in Oct 2004.)
svn:r10238
2007-05-22 00:46:55 +00:00
Nick Mathewson
de5194eeaa
r13025@Kushana: nickm | 2007-05-21 17:40:56 -0400
...
Bugfix and possible backport candidate: use the same logic as in read_all when reading resolv.conf. Maybe this fixes bug 433.
svn:r10237
2007-05-21 21:48:02 +00:00
Peter Palfrader
d2f7a9d0cc
Hopefully fix #429 for good by actually using, not just figuring out, the correct mmap
...
svn:r10233
2007-05-21 12:14:45 +00:00
Nick Mathewson
a4f5b99e61
r13023@Kushana: nickm | 2007-05-20 16:16:36 -0400
...
More bulletproofing on bug 429
svn:r10231
2007-05-20 20:16:45 +00:00
Nick Mathewson
21a72520ce
r13021@Kushana: nickm | 2007-05-20 14:03:10 -0400
...
Provide actual reasons when dropping an uploaded extrainfo for incompatibility; also, clean whitespace.
svn:r10230
2007-05-20 18:03:26 +00:00
Nick Mathewson
5364833be0
r13017@Kushana: nickm | 2007-05-20 13:40:45 -0400
...
Address points in r10227.
svn:r10229
2007-05-20 17:43:55 +00:00
Nick Mathewson
bc26f28865
svn:r10228
2007-05-20 17:43:29 +00:00
Roger Dingledine
ddd0054a85
point out two remote crash bugs, a memory leak, and a few other
...
items we should probably look into.
svn:r10227
2007-05-20 14:15:23 +00:00
Nick Mathewson
0b661f6575
r12818@catbus: nickm | 2007-05-20 01:15:50 -0400
...
Look for extrainfo bodies in the extrainfo mmap, not in the descriptor mmap. Duh. Should fix bug 429.
svn:r10226
2007-05-20 05:15:53 +00:00
Peter Palfrader
6d46ece6ac
Fix a loop in routerlist_assert_ok()
...
svn:r10224
2007-05-19 21:14:17 +00:00
Nick Mathewson
5f58bee0b0
r12812@catbus: nickm | 2007-05-19 16:17:36 -0400
...
Fix compilation with -O0; add unit tests for swap and shuffle.
svn:r10223
2007-05-19 20:17:37 +00:00
Nick Mathewson
6f8866a817
r12810@catbus: nickm | 2007-05-19 16:08:42 -0400
...
Fix bugs in extrainfo_insert, and change it to use desc_by_eid_map.
svn:r10222
2007-05-19 20:08:44 +00:00
Nick Mathewson
4d3ec5919e
r12808@catbus: nickm | 2007-05-19 14:48:51 -0400
...
Fix another consistency error.
svn:r10221
2007-05-19 18:48:53 +00:00
Nick Mathewson
48e30ce2c7
r12805@catbus: nickm | 2007-05-19 14:31:00 -0400
...
Fix a groovy memory corruption bug in routerlist_replace.
svn:r10220
2007-05-19 18:31:04 +00:00
Nick Mathewson
07199e3d09
r12804@catbus: nickm | 2007-05-19 14:21:18 -0400
...
Disable a blatantly incorrect control event with potential for memory corruption.
svn:r10219
2007-05-19 18:31:02 +00:00
Nick Mathewson
0a27b53252
r12802@catbus: nickm | 2007-05-19 14:12:27 -0400
...
clear some ram when freeing it; add some more checks to assert_routerlist_ok.
svn:r10218
2007-05-19 18:12:31 +00:00
Nick Mathewson
58d27cfc29
r12800@catbus: nickm | 2007-05-18 20:45:15 -0400
...
Possible fix for bug 417 and bug 404: do not insert our routerinfo directly; instead, re-parse it first.
svn:r10217
2007-05-19 00:45:17 +00:00
Nick Mathewson
61a116b3da
r12798@catbus: nickm | 2007-05-18 20:31:54 -0400
...
Yet more debugging code to track down 417/404, inspired by a fun core from arma.
svn:r10216
2007-05-19 00:32:00 +00:00
Nick Mathewson
adf95e7f00
r12794@catbus: nickm | 2007-05-18 20:24:26 -0400
...
Make caches-extra-info lines parseable.
svn:r10215
2007-05-19 00:24:29 +00:00
Roger Dingledine
84c3a19170
found this in my sandbox
...
svn:r10214
2007-05-19 00:14:34 +00:00
Nick Mathewson
7a61357250
r12790@catbus: nickm | 2007-05-18 17:24:26 -0400
...
Fix build on gcc 4.2
svn:r10212
2007-05-18 21:24:37 +00:00
Nick Mathewson
e476e61ce0
r12982@Kushana: nickm | 2007-05-18 15:15:14 -0400
...
Partial backport candidate: We had a bug where we were downloading descriptors by descriptor digest, but trying to look them up by identity fingerprint when updating their failure count and next retry time. (Also use correct backoff logic for extrainfo code.) Needs testing, doubtless.
svn:r10210
2007-05-18 21:19:53 +00:00
Nick Mathewson
ec55cf526d
r12981@Kushana: nickm | 2007-05-18 14:12:19 -0400
...
First cut at code to download extra-info docs. Also note a bad bug in directory.c (look for the string BUG BUG BUG).
svn:r10209
2007-05-18 21:19:19 +00:00
Nick Mathewson
a187704872
r12980@Kushana: nickm | 2007-05-18 14:11:05 -0400
...
Add a "swap" function to smartlist, add a "shuffle" function for smartlist to crypto.c, and make appropriate hashtable functions be more const.
svn:r10208
2007-05-18 21:19:14 +00:00
Nick Mathewson
836328be2e
r12777@catbus: nickm | 2007-05-16 21:52:23 -0400
...
Fix dumb bug introduced in r10199
svn:r10202
2007-05-17 01:52:26 +00:00
Nick Mathewson
b4bd9f772c
r12771@catbus: nickm | 2007-05-16 18:12:32 -0400
...
Make -Wstrict-overflow=5 happy with GCC 4.2. It is kind of a pain, but it does agood job of letting us know where we can make our code better by simplifying dependent conditionals.
svn:r10201
2007-05-16 22:16:13 +00:00
Nick Mathewson
2988d797eb
r12770@catbus: nickm | 2007-05-16 17:49:26 -0400
...
Move around field order a little, in order to compact some structures. (Thanks to -Wpadded)
svn:r10200
2007-05-16 22:15:57 +00:00
Nick Mathewson
807adfc879
r12769@catbus: nickm | 2007-05-16 17:32:01 -0400
...
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 22:15:48 +00:00
Nick Mathewson
b837191fd0
r12768@catbus: nickm | 2007-05-16 17:25:33 -0400
...
Fix GCC warnings related to local parameters/variables getting shadowed.
svn:r10198
2007-05-16 22:15:14 +00:00
Nick Mathewson
e043b86f47
r12764@catbus: nickm | 2007-05-15 17:17:39 -0400
...
Enable (and cope with) more GCC 4.2 warnings.
svn:r10196
2007-05-15 21:17:48 +00:00
Nick Mathewson
bfdc366037
r12763@catbus: nickm | 2007-05-15 05:29:33 -0400
...
Make --enable-gcc-warnings happy on the upcoming gcc 4.2
svn:r10195
2007-05-15 21:17:42 +00:00
Nick Mathewson
ca32b4d5b5
r12761@catbus: nickm | 2007-05-15 03:13:52 -0400
...
Be a lot smarter when parsing lists of routers and extrainfos.
svn:r10193
2007-05-15 07:13:56 +00:00
Nick Mathewson
a7514649c3
r12758@catbus: nickm | 2007-05-14 15:19:29 -0400
...
Cleanup, lock-down, and refactor bits of routerparse.c: use a single unified function to check all signatures. Fix all DOCDOCs. Remove some old dead debugging code. Enforce some parsing rules better.
svn:r10192
2007-05-14 22:51:05 +00:00
Roger Dingledine
37519d993d
backport candidate: seems to me that r10153 won't work without
...
this patch too.
svn:r10187
2007-05-14 08:09:12 +00:00
Nick Mathewson
5f9d4d0587
r12750@catbus: nickm | 2007-05-13 10:08:13 -0400
...
Fix compilation in connection_edge.c
svn:r10186
2007-05-13 20:24:43 +00:00
Roger Dingledine
440b7f0c70
polish r9726-r9903
...
svn:r10182
2007-05-13 09:25:06 +00:00
Roger Dingledine
346826d97b
If a directory authority is down, skip it when deciding where to get
...
networkstatus objects or descriptors. Otherwise we keep asking
every 10 seconds forever.
(adapted from r9880)
svn:r10175
2007-05-12 23:22:27 +00:00
Nick Mathewson
11f3e894d3
r12708@catbus: nickm | 2007-05-10 15:18:08 -0400
...
Patch from shibz: implement a getinfo status/version/... so a controller can tell whether the current version is recommended, whether any versions are good, and how many authorities agree.
svn:r10162
2007-05-10 19:30:02 +00:00
Nick Mathewson
e3b2a7b53b
r12935@Kushana: nickm | 2007-05-10 11:25:09 -0400
...
Make buffer unit tests pass again
svn:r10158
2007-05-10 15:25:40 +00:00
Roger Dingledine
de11011b1b
backport candidate: when we have k non-v2 authorities in our
...
dirservers lines, we ignored as many as k v2 authorities while
updating our network-statuses.
(not a problem right now since we have zero non-v2 authorities.
but if we ever change that...)
svn:r10157
2007-05-10 10:01:53 +00:00
Roger Dingledine
4e9a008e66
Backport candidate: if all of our dirservers have given us
...
bad or no networkstatuses lately, then stop hammering them
once per minute even if we think they're failed.
svn:r10156
2007-05-10 09:34:34 +00:00
Roger Dingledine
5ffabd4de4
backport candidate:
...
If a directory server runs out of space in the connection table
as it's processing a begin_dir request, it will free the exit stream
but leave it attached to the circuit, leading to unpredictable
behavior. (Reported by seeess, fixes bug 425.)
svn:r10154
2007-05-10 08:53:05 +00:00
Roger Dingledine
cd23b65a07
Backport candidate: count it as a failure if we fetch a valid
...
network-status but we don't want to keep it. Otherwise we'll keep fetching
it and keep not wanting to keep it. Fixes part of bug 422.
svn:r10153
2007-05-10 05:12:20 +00:00
Roger Dingledine
8e8144cd58
fix a printf size_t/int mismatch from r10150
...
svn:r10152
2007-05-10 04:04:44 +00:00
Roger Dingledine
de6b3512e9
move a few more situations over to the authority_type_t bitfield
...
svn:r10151
2007-05-10 04:01:28 +00:00
Nick Mathewson
34a09c24b5
r12706@catbus: nickm | 2007-05-09 18:39:46 -0400
...
Keep two freelists for buffer ram chunks: one of 4k chunks, and one of 16k chunks. Also, document the whole business.
svn:r10150
2007-05-09 22:39:49 +00:00
Nick Mathewson
b248ed620f
r12704@catbus: nickm | 2007-05-09 17:43:34 -0400
...
Periodically clean the freelist of buffer memory chunks.
svn:r10149
2007-05-09 21:43:41 +00:00
Nick Mathewson
a7696a936d
r12700@catbus: nickm | 2007-05-09 17:22:53 -0400
...
[Backport candidate] On windows, open cached-routers with the sharing mode "FILE_SHARE_READ so that other processes can read it while Tor is running. (Reported by Janbar).
svn:r10148
2007-05-09 21:22:56 +00:00
Nick Mathewson
ceac39aa8a
r12697@catbus: nickm | 2007-05-09 00:15:40 -0400
...
Change authority_type_t to a set of flags; use it more consistently.
svn:r10144
2007-05-09 04:15:46 +00:00
Roger Dingledine
66f9240eb5
complain when we try to upload to, say, bridge authorities,
...
yet we didn't configure any first.
svn:r10143
2007-05-09 02:20:03 +00:00
Roger Dingledine
07bf274d98
Interim commit: new config options Bridge and UseBridges.
...
It is becoming increasingly clear to me that bridges should
be a special case of entry guards, not a whole separate pile
of nearly identical functions.
svn:r10141
2007-05-08 11:28:05 +00:00
Roger Dingledine
d136f2a7b2
When we are reporting the DirServer line we just parsed, we were
...
logging the second stanza of the key fingerprint, not the first.
svn:r10140
2007-05-08 10:33:46 +00:00
Roger Dingledine
54f5ab39b3
record the router purpose at each step of the circuit path.
...
i have the feeling this will come in handy.
svn:r10139
2007-05-08 10:11:53 +00:00
Roger Dingledine
1d3bb103a4
clean up some function argument names
...
svn:r10138
2007-05-08 10:01:33 +00:00
Roger Dingledine
a201861dc2
use the new _PublishServerDescriptor to publish descriptors either
...
to v2 authorities or to bridge authorities, depending on config.
svn:r10137
2007-05-08 09:13:30 +00:00
Roger Dingledine
e4f40dd794
Change the PublishServerDescriptor config option from a boolean
...
into a string: "v1", "v2", bridge", "". Continue to support
"0" and "1".
svn:r10136
2007-05-08 09:09:26 +00:00
Nick Mathewson
89753e2163
r12676@catbus: nickm | 2007-05-07 13:11:38 -0400
...
When we cannot find a micro-revision number, do not overwrite an already-present micro-revision.i.
svn:r10134
2007-05-07 17:11:53 +00:00
Roger Dingledine
95ead29574
prepare directory_post_to_dirservers() to hear what sort of
...
dir authority we'd like to upload to. at some point we should
pick a config option to say that in, for bridges.
svn:r10129
2007-05-07 09:28:48 +00:00
Roger Dingledine
f8a8b27dd2
add a 'bridge' flag for dirserver config entries
...
svn:r10128
2007-05-07 08:26:50 +00:00
Roger Dingledine
43411ceed3
Implement "getinfo status/circuit-established"
...
svn:r10120
2007-05-05 22:51:02 +00:00
Roger Dingledine
713626bd73
make it work on windows/etc again, i presume
...
svn:r10118
2007-05-04 10:43:01 +00:00
Roger Dingledine
10efbed2f5
ok, i'm not so good at counting
...
svn:r10117
2007-05-04 10:39:17 +00:00
Roger Dingledine
0ce53ca817
on the theory that my client_used hack is here to stay at least for the
...
next little while, make it only take effect _when there's an attached
origin circuit_, rather than from the first attached origin circuit
until death of the conn.
svn:r10116
2007-05-04 10:34:47 +00:00
Roger Dingledine
462dfe2012
make MaxAdvertisedBandwidth into a legal default
...
svn:r10115
2007-05-04 09:25:23 +00:00
Roger Dingledine
b1d93df038
if you're using relaybandwidthrate and relaybandwidthburst, make
...
sure that's reflected in your router descriptor.
svn:r10114
2007-05-04 09:20:13 +00:00
Roger Dingledine
dc795203aa
early skeletal support for running a bridge directory authority
...
svn:r10112
2007-05-04 08:04:27 +00:00
Roger Dingledine
d112e7b1ad
fix some code comments, a wrapper, and add a todo item
...
svn:r10111
2007-05-04 07:24:01 +00:00
Roger Dingledine
dfe93fb386
whoops, i missed main.c in my r10092
...
svn:r10098
2007-05-02 21:56:32 +00:00
Nick Mathewson
e2a49ed2f4
r12639@catbus: nickm | 2007-05-02 17:37:49 -0400
...
Start implementing key certificate parsing. Note TODO items for combined 101/103.
svn:r10097
2007-05-02 21:37:55 +00:00
Nick Mathewson
9279c1d5fe
r12638@catbus: nickm | 2007-05-02 17:37:30 -0400
...
Remove the "RSA keys are 128-bits" assumption from crypto.c
svn:r10096
2007-05-02 21:37:53 +00:00
Nick Mathewson
da758f4a18
r12634@catbus: nickm | 2007-05-02 15:13:13 -0400
...
Shell tweaks suggested by weasel.
svn:r10094
2007-05-02 19:13:15 +00:00
Nick Mathewson
744d955bb3
r12632@catbus: nickm | 2007-05-02 14:59:55 -0400
...
Fix compilation-breaking r10092.
svn:r10093
2007-05-02 18:59:57 +00:00
Roger Dingledine
1b95bbdba6
New config option V2AuthoritativeDirectory that all directory
...
authorities should set. This will let future authorities choose
not to serve V2 directory information.
Also, go through and revamp all the authdir_mode stuff so it tries
to do the right thing if you're an auth but not a V1 or V2 auth.
svn:r10092
2007-05-02 09:12:04 +00:00
Nick Mathewson
47d21abf15
r12627@catbus: nickm | 2007-05-01 16:42:21 -0400
...
Oops; downgrade a message to INFO.
svn:r10090
2007-05-01 20:42:23 +00:00
Nick Mathewson
26abac8c4c
r12625@catbus: nickm | 2007-05-01 16:41:23 -0400
...
Remove the _UploadExtraInfo option, since I tried turning it on and moria[12] seem not to have exploded.
svn:r10089
2007-05-01 20:41:27 +00:00
Nick Mathewson
979b90001b
r12622@catbus: nickm | 2007-05-01 16:29:19 -0400
...
Look at the version in the routerinfo as well as the versino in the networkstatus when deciding whether to upload extrainfo
svn:r10088
2007-05-01 20:29:32 +00:00
Nick Mathewson
c9c0d2846d
r12621@catbus: nickm | 2007-05-01 16:22:56 -0400
...
Authority patch; backport candidate: include micro-versions in network status documents.
svn:r10087
2007-05-01 20:29:26 +00:00
Nick Mathewson
89ab267cfb
r12619@catbus: nickm | 2007-05-01 16:13:42 -0400
...
Add code to upload extrainfos to authorities running 0.2.0.0-alpha-dev (r10070) or later.
svn:r10086
2007-05-01 20:13:49 +00:00
Nick Mathewson
0faaa16b0c
r12615@catbus: nickm | 2007-05-01 09:48:45 -0400
...
Only replace micro-revision.i if it changes.
svn:r10085
2007-05-01 13:48:49 +00:00
Nick Mathewson
8f94f0540f
r12611@catbus: nickm | 2007-04-30 22:49:00 -0400
...
For reasons which make sense to somebody, I'm sure, mingw gcc wants the libraries to appear at the end of the command line. This is done by specifying them with LDADD in Makefile.am, not LDFLAGS.
If anybody can explain to me why mingw thinks "gcc -o foo foo.o -lbar" is fine, whereas "gcc -lbar -o foo foo.o" is Doubleplusbad UnMingwThink, I'd quite appreciate it. Until then, I'll just do what seems to work, and hope we don't blunder across any other great slumbering cthonian deities of arbitrary syntax.
svn:r10082
2007-05-01 02:53:32 +00:00
Nick Mathewson
fa39336e65
r12607@catbus: nickm | 2007-04-30 21:36:28 -0400
...
More attempt to fix win32 building. This time, with extra linking.
svn:r10080
2007-05-01 01:36:32 +00:00
Nick Mathewson
bbd4ef1cd1
r12605@catbus: nickm | 2007-04-30 21:10:48 -0400
...
Add an expiry date to key certificates.
svn:r10079
2007-05-01 01:10:50 +00:00
Roger Dingledine
e9c4dd1304
more cleanups on the hsusage patch
...
svn:r10077
2007-04-30 23:25:22 +00:00
Roger Dingledine
590c6ff33d
identify the exit node correctly when we timeout and detach
...
from a circuit, even if the exit node is in the middle.
there are probably a few more places that need this fix too.
svn:r10076
2007-04-30 23:24:38 +00:00
Nick Mathewson
95734e73ff
r12596@catbus: nickm | 2007-04-30 18:42:44 -0400
...
New tool to generate key certificates as in proposal 103. needs cleanup
svn:r10075
2007-04-30 22:43:01 +00:00
Nick Mathewson
6a27dd8284
r12595@catbus: nickm | 2007-04-30 18:32:34 -0400
...
Move private function declarations from crypto.c into a new #ifdef CRYPTO_PRIVATE block in crypto.h
svn:r10074
2007-04-30 22:42:50 +00:00