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
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
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
22f2f30a33
r12591@catbus: nickm | 2007-04-30 16:50:03 -0400
...
Minimize the libraries that we link things against: there is no reason to link tor-resolve against zlib, openssl, or libevent, for example.
svn:r10072
2007-04-30 20:50:09 +00:00
Nick Mathewson
e97a6dd01f
r12587@catbus: nickm | 2007-04-30 15:47:39 -0400
...
Backport candidate: correctly set the purpose of routers that are inserted by the controller with purpose=controller.
svn:r10071
2007-04-30 19:48:45 +00:00
Nick Mathewson
0390a0499c
r12586@catbus: nickm | 2007-04-30 15:43:05 -0400
...
More work for proposal 104: actually cache extrainfo documents to disk, and reload the cache properly.
svn:r10070
2007-04-30 19:48:39 +00:00
Nick Mathewson
ae40e7f633
r12585@catbus: nickm | 2007-04-30 14:38:37 -0400
...
(Needs review.) Allow directory authorities to accept multiple router descriptors and extra info documents in a single POST. This will make implementing the client side of proposal 104 a lot simpler.
svn:r10069
2007-04-30 19:48:33 +00:00
Nick Mathewson
b27b09ae1e
r12581@catbus: nickm | 2007-04-30 13:39:21 -0400
...
Minor cleanups on hidden service usage patch from Karsten: tidy documentation; make free_all idempotent (and safe to call even if we have not yet initialized rephist); and stop using "l" as a variable name (it is too easy to confuse with "1").
svn:r10068
2007-04-30 17:46:19 +00:00
Nick Mathewson
18ba9fe81f
r12580@catbus: nickm | 2007-04-30 13:29:05 -0400
...
Initial version of patch from Karsten Loesing: Add an HSAuthorityRecordStats option to track statistics of overall hidden service usage without logging information that would be useful to an attacker.
svn:r10067
2007-04-30 17:46:13 +00:00
Nick Mathewson
6875559c49
r12579@catbus: nickm | 2007-04-30 13:26:53 -0400
...
Oops. Routerlist_check_bug_417 should work even if we are not on a server.
svn:r10066
2007-04-30 17:46:11 +00:00
Nick Mathewson
f2db099fc0
r12571@catbus: nickm | 2007-04-30 10:51:52 -0400
...
Check for more HAVE_* header defines when building eventdns.c
svn:r10063
2007-04-30 14:52:07 +00:00
Nick Mathewson
ee5a378665
r12570@catbus: nickm | 2007-04-30 10:49:50 -0400
...
Add an extra lock to try to get unit tessts passing reliably again.
svn:r10062
2007-04-30 14:52:05 +00:00
Nick Mathewson
566cdcd0c2
r12569@catbus: nickm | 2007-04-30 10:48:51 -0400
...
Do not use micro-revision.i on MSVC; it will only be useful to people who have make.
svn:r10061
2007-04-30 14:52:02 +00:00
Nick Mathewson
5b26a076c6
Oops; the "not in the routerlist" value for routerinfo_t.routerlist_index is -1, not 0.
...
svn:r10060
2007-04-30 14:32:22 +00:00
Nick Mathewson
65daa191fe
r12567@catbus: nickm | 2007-04-30 10:26:35 -0400
...
Suggested by weasel: Add a fast function to check for the common failure mode for bug 417/404, and call it a lot.
svn:r10059
2007-04-30 14:26:38 +00:00
Nick Mathewson
43385b9bc9
r12565@catbus: nickm | 2007-04-30 10:09:07 -0400
...
Misc cleanup and bulletproofing on r10056.
svn:r10058
2007-04-30 14:09:11 +00:00
Nick Mathewson
420df2ce15
r12559@catbus: nickm | 2007-04-30 09:17:54 -0400
...
Fix bug 421: Only set the revision number from SVK if we have a runnable svk _and_ a ~/.svk directory.
svn:r10057
2007-04-30 13:17:57 +00:00
Roger Dingledine
5ba4eaba1c
Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
...
so we can exit from the middle of the circuit.
svn:r10056
2007-04-30 11:10:45 +00:00
Roger Dingledine
7fb4365cd3
Add a new config option __DisablePredictedCircuits designed for
...
use by the controller, when we don't want Tor to build any circuits
preemptively.
svn:r10054
2007-04-30 09:18:48 +00:00
Nick Mathewson
313ac313be
r12557@catbus: nickm | 2007-04-30 01:36:39 -0400
...
Oops; the rest of the last patch. If that one gets backported, this should too.
svn:r10053
2007-04-30 05:36:41 +00:00
Nick Mathewson
f7acc3cfa0
r12553@catbus: nickm | 2007-04-30 01:32:54 -0400
...
Backport candidate: Add asserts to dirserv_remove_invalid, and fix a bug in dirserv_remove_invalid that could mess with pointers in a freed routerinfo right after it was freed.
svn:r10052
2007-04-30 05:32:57 +00:00
Roger Dingledine
2d56d883c2
minor cleanups
...
svn:r10050
2007-04-30 04:00:06 +00:00
Nick Mathewson
e0b0c2a4d2
r12544@catbus: nickm | 2007-04-29 21:08:58 -0400
...
Fix an assertion when we call tor_free_all before calling do_main_loop(). Discovered by weasel.
svn:r10046
2007-04-30 01:09:03 +00:00
Roger Dingledine
397afcc3f6
Make PreferTunneledDirConns and TunnelDirConns work even when
...
we have no cached directory info. This means Tor clients can now
do all of their connections protected by TLS.
svn:r10035
2007-04-27 10:26:09 +00:00
Roger Dingledine
3d00738ec7
simplify connection_watch_events()
...
hope this doesn't break it
svn:r10025
2007-04-25 07:20:04 +00:00
Roger Dingledine
7c5f65c226
fix an assert error in r9995 (unlikely to happen, but still)
...
svn:r10024
2007-04-25 07:04:53 +00:00
Roger Dingledine
7b11f2c843
stop generating a 6-gig info-level log file after a day of running
...
svn:r10023
2007-04-25 06:10:16 +00:00
Roger Dingledine
5bdb138d11
cleanups, and note a bug
...
svn:r10022
2007-04-25 06:05:46 +00:00
Nick Mathewson
94eef608ae
r12784@Kushana: nickm | 2007-04-23 19:24:09 -0400
...
Avoid another assert failure in the new buffer memory code. (This time, it hit when freeing a 4k buffer with some data on it.)
svn:r10011
2007-04-23 23:24:53 +00:00
Nick Mathewson
3831d77dba
r12782@Kushana: nickm | 2007-04-23 18:20:19 -0400
...
Avoid a segfault when freeing a buffer with size 0.
svn:r10010
2007-04-23 22:20:45 +00:00
Nick Mathewson
2f4784cbd8
r12499@catbus: nickm | 2007-04-23 10:42:23 -0400
...
Keep a freelist of unused 4k buffer chunks, rather than wasting 8k for every inactive connection_t.
svn:r10006
2007-04-23 14:42:27 +00:00
Nick Mathewson
473c266fc2
r12496@catbus: nickm | 2007-04-22 23:04:05 -0400
...
When logging memory usage, break down memory used in buffers by buffer type.
svn:r10004
2007-04-23 03:04:46 +00:00
Nick Mathewson
5cf600b57a
r12492@catbus: nickm | 2007-04-22 20:24:02 -0400
...
Even more asserts to try to catch bug 404/417.
svn:r10003
2007-04-23 00:24:06 +00:00
Nick Mathewson
87b5928202
r12485@catbus: nickm | 2007-04-21 13:46:14 -0400
...
Document some fields in or.h
svn:r9998
2007-04-21 17:46:22 +00:00
Nick Mathewson
fb065724f7
r12484@catbus: nickm | 2007-04-21 13:45:58 -0400
...
Suppress display of version-detection junk in Makefile.am
svn:r9997
2007-04-21 17:46:17 +00:00
Nick Mathewson
bbd63a9ae0
r12482@catbus: nickm | 2007-04-21 13:30:24 -0400
...
Rename a couple of confusing fields
svn:r9996
2007-04-21 17:30:42 +00:00
Nick Mathewson
648065fcb4
r12763@Kushana: nickm | 2007-04-20 18:42:58 -0400
...
Initial version of code to stop using socket pairs for linked connections. Superficially, it seems to work, but it probably needs a lot more testing and attention.
svn:r9995
2007-04-21 17:26:12 +00:00
Nick Mathewson
227b2e0226
r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400
...
Track the number of connection_t separately from the number of open sockets. It is already possible to have connections that do not count: resolving conns, for one. Once we move from socketpairs to linked conns, and once we do dns proxying, there will be lots of such connections.
svn:r9994
2007-04-21 17:24:18 +00:00
Nick Mathewson
6ee5bef092
r12458@catbus: nickm | 2007-04-19 15:52:23 -0400
...
Fix a bug in displaying memory pool usage. Also dump cell allocation, and track padded_cell_ts as they are allocated and freed, to make sure we are not leaking cells.
svn:r9992
2007-04-19 19:52:30 +00:00
Nick Mathewson
7392464b88
r12456@catbus: nickm | 2007-04-19 14:47:01 -0400
...
Make dumpmemusage() dump cell pool usage information.
svn:r9991
2007-04-19 18:47:04 +00:00
Nick Mathewson
bf4f0539cf
r12434@catbus: nickm | 2007-04-19 11:23:35 -0400
...
When advancing a string pointer, make sure we do not later free the altered pointer. Fixes bug 416, introduced in r9971.
svn:r9990
2007-04-19 15:23:38 +00:00
Nick Mathewson
addf2987c5
r12429@catbus: nickm | 2007-04-18 15:28:41 -0400
...
Make svn revision number visible in version even if building from a .tar.gz. This was remarkably painless.
svn:r9988
2007-04-18 19:28:47 +00:00
Nick Mathewson
a973611834
r12425@catbus: nickm | 2007-04-17 17:16:38 -0400
...
Detect the svn version correctly when building from an svk checkout too. Whee, fun with bash and make.
svn:r9985
2007-04-17 21:16:40 +00:00
Nick Mathewson
00941b0171
r12418@catbus: nickm | 2007-04-16 20:58:25 -0400
...
Twiddle tor_version_as_new_as() so we can check for particular svn revisions. With unit tests, for added freshness.
svn:r9977
2007-04-17 00:58:30 +00:00
Nick Mathewson
bfac679cd4
A hack I've been wanting for a while: when building a -dev version
...
from an SVN repository, use the current svn revision in the platform
string and in the output of --version.
svn:r9976
2007-04-16 23:56:31 +00:00
Nick Mathewson
362fbc79d2
r12414@catbus: nickm | 2007-04-16 17:37:17 -0400
...
More proposal-104 stuff: actually remember extra-info stuff.
svn:r9975
2007-04-16 21:37:21 +00:00
Nick Mathewson
17e83a408f
Fix some proposal-104 bugs.
...
svn:r9972
2007-04-16 18:54:56 +00:00
Nick Mathewson
6d32d9cb2d
r12406@catbus: nickm | 2007-04-16 14:39:33 -0400
...
More proposal-104 stuff: add most of the code for authorities to accept and serve extra-info documents. The back-end to store the things is missing.
svn:r9971
2007-04-16 18:39:39 +00:00
Nick Mathewson
2bb5e64289
r12403@catbus: nickm | 2007-04-16 13:55:03 -0400
...
Code to generate extrainfo whenever routerdesc is regenerated; code to check extrainfo against routerdesc.
svn:r9970
2007-04-16 17:55:08 +00:00
Nick Mathewson
7fb7658a45
r12401@catbus: nickm | 2007-04-16 12:28:01 -0400
...
Enforce checks for number of arguments to items in directory objects more uniformly.
svn:r9968
2007-04-16 16:28:06 +00:00
Nick Mathewson
a67f8a3787
r12388@catbus: nickm | 2007-04-16 00:17:29 -0400
...
Now that the directory parser checks for missing items, the rest of the code can just assert that they are there, rather than checking a second time.
svn:r9966
2007-04-16 04:18:29 +00:00
Nick Mathewson
cf02ab6d39
r12387@catbus: nickm | 2007-04-16 00:06:40 -0400
...
Refactor router/directory parsing backend: use a separate token table for everything that we parse, and enforce the correct count of each item.
svn:r9965
2007-04-16 04:18:21 +00:00
Nick Mathewson
5b220f65c8
r12385@catbus: nickm | 2007-04-15 22:55:58 -0400
...
Initial code to parse extra-info documents as described in proposal 104. This is making me realize that the parsing code in routerparse.c is a little daft.
svn:r9963
2007-04-16 04:17:58 +00:00
Nick Mathewson
795aa1a196
r12351@catbus: nickm | 2007-04-11 12:09:46 -0400
...
More autoconf hacking: use same machinery to find zlib as for openssl and libevent. Have unified library finder include setup for --with variable. Start trying to suggest to the user what packages they should install if finding the library fails.
svn:r9945
2007-04-11 16:28:44 +00:00
Nick Mathewson
38a5f09502
r12349@catbus: nickm | 2007-04-11 09:18:15 -0400
...
Add code to shrink the cell memory pool by discarding empty chunks that have been empty for the last 60 seconds. Also, instead of having test.c duplicate declarations for exposed functions, put them inside #ifdef foo_PRIVATE blocks in the headers. This prevents bugs where test.c gets out of sync.
svn:r9944
2007-04-11 13:18:25 +00:00
Nick Mathewson
1c8f9b319b
r12344@catbus: nickm | 2007-04-10 21:27:25 -0400
...
Fix documentation and usage of 2nd argument to mp_pool_new.
svn:r9942
2007-04-11 01:27:33 +00:00
Nick Mathewson
51e4b8d706
r12338@catbus: nickm | 2007-04-10 20:29:05 -0400
...
Document memory pool implementation, and tweak it even mor. See? Programming is fun.
svn:r9940
2007-04-11 00:30:34 +00:00
Nick Mathewson
28de06b8e6
r12337@catbus: nickm | 2007-04-10 17:55:26 -0400
...
Add support for using memory pools to allocate queued cell; pass --disable-cell-pool to configure to disable this.
svn:r9939
2007-04-11 00:30:29 +00:00
Nick Mathewson
6ba0b0e9f4
r12336@catbus: nickm | 2007-04-10 17:34:25 -0400
...
Unit tests and debugging for memory pool implementation.
svn:r9938
2007-04-11 00:30:25 +00:00
Nick Mathewson
f95d232483
r12332@catbus: nickm | 2007-04-10 12:24:45 -0400
...
Yet another attempted Bug 411 fix: Under some circumstances, a circuit can have cells without being active. The likeliest is that it has been unlinked from all connections in preparation for closing. Therefore, stop enforcing this non-invariant.
svn:r9936
2007-04-10 16:24:50 +00:00
Nick Mathewson
58a6761056
r12330@catbus: nickm | 2007-04-09 19:15:42 -0400
...
Split type of "packed cell" from "parsed cell"; pack cells before queueing them on circuits. This will help us avoid dumb errors when we confuse the two types.
svn:r9935
2007-04-09 23:15:46 +00:00
Nick Mathewson
7529c8f548
r12328@catbus: nickm | 2007-04-09 18:16:31 -0400
...
Argh, missed another 9030 bogon.
svn:r9934
2007-04-09 22:16:33 +00:00
Nick Mathewson
2a07919198
r12326@catbus: nickm | 2007-04-09 17:36:41 -0400
...
Clean up crap from 9930. I can hardly wait till I trust SVK 2.x enough to upgrade.
svn:r9933
2007-04-09 21:36:45 +00:00
Nick Mathewson
2dc6019edb
r12688@Kushana: nickm | 2007-04-09 17:29:12 -0400
...
Simplify dns_resolve: use a helper function so that we handle the error/answer/pending cases uniformly in dns_resolve, and everything else in dns_resolve_impl.
svn:r9932
2007-04-09 21:34:13 +00:00
Nick Mathewson
9c3df07b56
r12687@Kushana: nickm | 2007-04-09 17:05:57 -0400
...
Try to fix bug 410: move responsibility for attaching/detaching initial streams from circuits into dns_resolve. Needs refactoring a little.
svn:r9931
2007-04-09 21:34:03 +00:00
Nick Mathewson
32506ad282
svn:r9930
2007-04-09 21:33:49 +00:00
Nick Mathewson
98e5d10761
r12318@catbus: nickm | 2007-04-09 16:08:20 -0400
...
Fix the first half of bug 411: when we make a circuit active inactive on a connection, it _must_ actually be on that connection.
svn:r9929
2007-04-09 20:09:28 +00:00
Nick Mathewson
eb95ff9ba9
r12317@catbus: nickm | 2007-04-09 15:50:51 -0400
...
Fix second part of bug 411 (which was actually a separate bug): it isnt safe to clear a cell queue while the circuit is active.
svn:r9928
2007-04-09 20:09:26 +00:00
Roger Dingledine
f36c613dbc
fix a memory leak when we ask for "all" networkstatuses and
...
we get one we don't recognize.
backport candidate.
backbackport candidate.
svn:r9918
2007-03-29 07:02:12 +00:00
Nick Mathewson
6589ea2a2f
Fix a crash bug in cell queues: It is possible for a connection_write_to_buf to close the connection or otherwise unlink the circuit, which makes the circuit nonactive, which invalidates the pointer from the circuit to the next circuit on the active ring. Also add a bunch of asserts, most #ifdefed out.
...
svn:r9915
2007-03-29 02:41:36 +00:00
Nick Mathewson
d1ad950ca8
Turn bool_neq and bool_eq into macros.
...
svn:r9914
2007-03-29 02:37:06 +00:00
Nick Mathewson
98ae4bbd0f
Comment out the "clear queue when sending a destroy" logic: it seems potentially dangerous. (see comment for details)
...
svn:r9913
2007-03-29 02:32:00 +00:00