aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
AgeCommit message (Collapse)Author
2007-12-01start to refactor dirserver_mode()Roger Dingledine
svn:r12621
2007-12-01fix two trivial potential onionkey leaks. neither of theseRoger Dingledine
should happen in practice. but now they really won't. svn:r12620
2007-11-10Exit policies now reject connections that are addressed to aRoger Dingledine
relay's public (external) IP address too, unless ExitPolicyRejectPrivate is turned off. We do this because too many relays are running nearby to services that trust them based on network address. svn:r12459
2007-11-07 r16525@catbus: nickm | 2007-11-07 12:10:01 -0500Nick Mathewson
Clean up log messages from bug 543 fix, and make old_routers also keep track of their indices. This will probably crash some until all the bugs are fixed. svn:r12412
2007-10-30 r16282@catbus: nickm | 2007-10-30 14:28:58 -0400Nick Mathewson
Implement lots of proposal 105. None of it is enabled yet. svn:r12285
2007-10-29 r16262@catbus: nickm | 2007-10-29 13:21:35 -0400Nick Mathewson
Patch from Karsten: Code to act as (and use) v2 hidden service directories. svn:r12272
2007-10-28 r16242@catbus: nickm | 2007-10-28 16:28:13 -0400Nick Mathewson
Implement if-modified-since for consensus networkstatuses so that we do not download duplicates needlessly. svn:r12258
2007-10-21 r15991@catbus: nickm | 2007-10-20 20:08:29 -0400Nick Mathewson
Fix a nasty bug in DownloadExtraInfo implementation where we would discard, download, discard, download ad infinitum. svn:r12069
2007-10-18 r15913@catbus: nickm | 2007-10-18 10:22:19 -0400Nick Mathewson
Fix segfault in init_keys() svn:r12021
2007-10-17 r15886@catbus: nickm | 2007-10-17 17:21:10 -0400Nick Mathewson
Treat it as an error when a v3 authority cant load its keys or certificates svn:r12004
2007-10-17 r15877@catbus: nickm | 2007-10-17 12:54:56 -0400Nick Mathewson
Make unverified-consensus get removed when it is accepted or rejected. Make a new get_datadir_fname*() set of functions to eliminate the common code of "get the options, get the datadir, append some stuff". svn:r12000
2007-10-16 r15862@catbus: nickm | 2007-10-16 13:19:29 -0400Nick Mathewson
Correct mismatches between DirServer lines and authority configuration. svn:r11992
2007-10-13Stop publishing a new server descriptor just because we HUP orRoger Dingledine
when we find our DirPort to be reachable but won't actually publish it. Extra descriptors without any real changes are dropped by the authorities, and can screw up our "publish every 18 hours" schedule. svn:r11915
2007-10-12Controllers should now specify cache=no or cache=yes when usingRoger Dingledine
the +POSTDESCRIPTOR command. svn:r11892
2007-10-09back out a little bit of r11817 to preserve current behavior.Roger Dingledine
some other behavior changes left in. svn:r11821
2007-10-09 r15598@catbus: nickm | 2007-10-09 16:37:35 -0400Nick Mathewson
Turn all "Is DirPort nonzero? Because if it is, we must be a directory" logic into calls to dirserver_mode(). svn:r11817
2007-10-04 r15530@catbus: nickm | 2007-10-04 12:16:27 -0400Nick Mathewson
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-09-27 r15422@catbus: nickm | 2007-09-27 16:42:35 -0400Nick Mathewson
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 r15412@catbus: nickm | 2007-09-27 12:04:24 -0400Nick Mathewson
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-26 r15400@catbus: nickm | 2007-09-26 12:13:12 -0400Nick Mathewson
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-24 r15310@catbus: nickm | 2007-09-24 11:36:08 -0400Nick Mathewson
Patch from Robert Hogan: fix a couple of status-event related typos. Backport candidate. svn:r11604
2007-09-21only mess with 'state' in init_keys if we're planning to actuallyRoger Dingledine
run tor. this resolves a segfault in 'tor --list-fingerprints' introduced by r11437. backport candidate due to r11438. svn:r11566
2007-09-17Servers used to decline to publish their DirPort if theirRoger Dingledine
BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth were below a threshold. Now they only look at BandwidthRate and RelayBandwidthRate. svn:r11465
2007-09-12 r14392@Kushana: nickm | 2007-09-12 11:04:20 -0400Nick Mathewson
Complete implementation of proposal 104: remove bandwidth history lines from router descriptors. svn:r11434
2007-09-11 r15047@catbus: nickm | 2007-09-11 13:40:54 -0400Nick Mathewson
Fix a memory leak when reloading v3 authority certificate and keys. svn:r11428
2007-09-11 r15046@catbus: nickm | 2007-09-11 13:38:36 -0400Nick Mathewson
Check V3 authority certificates for expiry, and warn the authority op as they get old. svn:r11427
2007-08-20Let directory authorities startup even when they can't generate Roger Dingledine
a descriptor immediately, e.g. because they don't know their address. svn:r11228
2007-08-20 r14731@catbus: nickm | 2007-08-20 12:02:09 -0400Nick Mathewson
Clean up authdir_X functions a little. svn:r11220
2007-08-20 r14729@catbus: nickm | 2007-08-20 11:58:02 -0400Nick Mathewson
Trigger load and save of MTBF data. svn:r11219
2007-08-20 r14726@catbus: nickm | 2007-08-20 11:42:07 -0400Nick Mathewson
Make v3-only authorities check reachability svn:r11218
2007-08-18 r14659@catbus: nickm | 2007-08-18 14:19:34 -0400Nick Mathewson
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-13 r13989@Kushana: nickm | 2007-08-13 16:31:03 -0400Nick Mathewson
Actually store the v3 authority id digest of a trusteddirserver svn:r11091
2007-08-13 r14534@catbus: nickm | 2007-08-13 15:15:46 -0400Nick Mathewson
Read v3 keys from the right location svn:r11087
2007-07-27 r13950@catbus: nickm | 2007-07-27 18:15:23 -0400Nick Mathewson
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-25 r13902@catbus: nickm | 2007-07-25 17:43:52 -0400Nick Mathewson
Some dirvote code to handle generating votes and slinging them around. More code is still needed. svn:r10927
2007-07-22handle fetching bridge descriptors from the bridge authority too.Roger Dingledine
svn:r10898
2007-07-21when requesting tor/server/authority, ask for tor/server/authority.zRoger Dingledine
instead. same functionality, saves a bit of bandwidth. and might even work. svn:r10896
2007-06-10more building blocks towards being able to fetch bridge descriptorsRoger Dingledine
svn:r10548
2007-06-09Be clearer on the various roles for auth dir types.Roger Dingledine
Bridge authorities no longer write bridge descriptors to their cached-routers file -- this gets complex because of extrainfo documents. svn:r10545
2007-05-29 r13050@catbus: nickm | 2007-05-29 13:31:11 -0400Nick Mathewson
Resolve all but 3 DOCDOCs. svn:r10393
2007-05-24 r12917@catbus: nickm | 2007-05-24 12:48:47 -0400Nick Mathewson
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-22 r12902@catbus: nickm | 2007-05-22 14:52:29 -0400Nick Mathewson
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 r12899@catbus: nickm | 2007-05-22 13:51:26 -0400Nick Mathewson
Extract common code from networkstatus_getinfo_helper_single() and generate_v2_networkstatus(). svn:r10294
2007-05-22 r12898@catbus: nickm | 2007-05-22 13:11:04 -0400Nick Mathewson
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 r12852@catbus: nickm | 2007-05-22 11:00:27 -0400Nick Mathewson
Use svn revisions consistently throughout all log messages. svn:r10291
2007-05-20 r13023@Kushana: nickm | 2007-05-20 16:16:36 -0400Nick Mathewson
More bulletproofing on bug 429 svn:r10231
2007-05-20 r13021@Kushana: nickm | 2007-05-20 14:03:10 -0400Nick Mathewson
Provide actual reasons when dropping an uploaded extrainfo for incompatibility; also, clean whitespace. svn:r10230
2007-05-20 r13017@Kushana: nickm | 2007-05-20 13:40:45 -0400Nick Mathewson
Address points in r10227. svn:r10229
2007-05-19 r12802@catbus: nickm | 2007-05-19 14:12:27 -0400Nick Mathewson
clear some ram when freeing it; add some more checks to assert_routerlist_ok. svn:r10218
2007-05-19 r12800@catbus: nickm | 2007-05-18 20:45:15 -0400Nick Mathewson
Possible fix for bug 417 and bug 404: do not insert our routerinfo directly; instead, re-parse it first. svn:r10217