aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
* r14422@tombo: nickm | 2008-02-24 17:09:56 -0500Nick Mathewson2008-02-24
| | | | | | | Whitespace fixes svn:r13700
* r14421@tombo: nickm | 2008-02-24 17:05:18 -0500Nick Mathewson2008-02-24
| | | | | | | Patch from mwenge: always willingly serve our own extrainfo from the controlport svn:r13699
* Servers that don't know their own IP address should go to theRoger Dingledine2008-02-23
| | | | | | | | | authorities for their first directory fetch, even if their DirPort is off or if they don't know they're reachable yet. This will help them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609. svn:r13688
* r14399@tombo: nickm | 2008-02-22 14:09:38 -0500Nick Mathewson2008-02-22
| | | | | | | More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680
* r18291@catbus: nickm | 2008-02-20 22:35:32 -0500Nick Mathewson2008-02-21
| | | | | | | Resolve all DOCDOC issues, and document some other undocumented code, and fix a changelog entry. svn:r13638
* r14182@tombo: nickm | 2008-02-15 17:20:51 -0500Nick Mathewson2008-02-15
| | | | | | | Defer, downgrade, or address more XXX020s. The remaining ones are all ones we should deal with before release. svn:r13530
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* r17947@catbus: nickm | 2008-02-06 11:57:53 -0500Nick Mathewson2008-02-06
| | | | | | | Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405
* misc small fixesRoger Dingledine2008-02-06
| | | | svn:r13403
* r17911@catbus: nickm | 2008-02-05 15:53:22 -0500Nick Mathewson2008-02-05
| | | | | | | Fix a potential bug that would make authorities fail to vote under bizarre circumstances that probably never happened. svn:r13385
* r17909@catbus: nickm | 2008-02-05 14:48:22 -0500Nick Mathewson2008-02-05
| | | | | | | As planned, rename networkstatus_vote_t to networkstatus_t, now that v3 networkstatuses are working and standard and v2 networkstatuses are obsolete. svn:r13383
* r17898@catbus: nickm | 2008-02-05 14:01:35 -0500Nick Mathewson2008-02-05
| | | | | | | Add (and use) a MAP_DEL_CURRENT macro to augment a non-const variant of MAP_FOREACH. svn:r13379
* Avoid going directly to the directory authorities even if you're a Roger Dingledine2008-01-18
| | | | | | | | relay, if you haven't found yourself reachable yet or if you've decided not to advertise your dirport yet. Addresses bug 556. svn:r13172
* r17554@catbus: nickm | 2008-01-10 12:48:29 -0500Nick Mathewson2008-01-10
| | | | | | | Do not send bridge descriptors over unencrypted connections. svn:r13094
* r17548@catbus: nickm | 2008-01-10 11:08:12 -0500Nick Mathewson2008-01-10
| | | | | | | Make proposal-109 behavior optional. svn:r13090
* r17467@catbus: nickm | 2008-01-05 19:54:20 -0500Nick Mathewson2008-01-06
| | | | | | | fix whitespace svn:r13035
* Fix several remotely triggerable asserts based on DirPort requestsRoger Dingledine2007-12-24
| | | | | | | | | | | | | | for a v2 or v3 networkstatus object before we were prepared. This was particularly bad for 0.2.0.13 and later bridge relays, who would never have a v2 networkstatus and would thus always crash when used. Bugfixes on 0.2.0.x. Estimate the v3 networkstatus size more accurately, rather than estimating it at zero bytes and giving it artificially high priority compared to other directory requests. Bugfix on 0.2.0.x. svn:r12952
* new config option FetchDirInfoEarly for tup/ioerror and the tordnselRoger Dingledine2007-12-21
| | | | svn:r12896
* Only Tors that want to mirror the v2 directory info shouldRoger Dingledine2007-12-20
| | | | | | | | | | | create the "cached-status" directory in their datadir. All Tors used to create it. Bugfix on 0.1.2.x. Bridge relays with DirPort set to 0 no longer cache v1 or v2 directory information; there's no point. Bugfix on trunk. svn:r12887
* answer getinfo ns/purpose/bridge queriesRoger Dingledine2007-12-18
| | | | svn:r12860
* Make bridge authorities test reachability of bridges.Roger Dingledine2007-12-18
| | | | | | | Added two XXX020's that we need to think harder about. svn:r12859
* clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine2007-12-12
| | | | svn:r12786
* New config options AuthDirBadDir and AuthDirListBadDirs forRoger Dingledine2007-12-10
| | | | | | | | | authorities to mark certain relays as "bad directories" in the networkstatus documents. Also supports the "!baddir" directive in the approved-routers file. svn:r12754
* also clear the hsdir status flag in routerinfo_t when the relay is noRoger Dingledine2007-12-10
| | | | | | | longer listed in the relevant networkstatus document. svn:r12752
* Bridges now behave like clients with respect to time intervals forRoger Dingledine2007-12-06
| | | | | | | | | downloading new consensus documents. Bridge users now wait until the end of the interval, so their bridge will be sure to have a new consensus document. svn:r12696
* Stop being so aggressive about fetching dir info if your DirPort isRoger Dingledine2007-12-04
| | | | | | | | | | | | | | on but your ORPort is off. Add a new config option BridgeRelay that specifies you want to be a bridge relay. Right now the only difference is that it makes you answer begin_dir requests, and it makes you cache dir info, even if your DirPort isn't on. Refactor directory_caches_dir_info() into some more functions. svn:r12668
* minor touchupsRoger Dingledine2007-12-03
| | | | svn:r12657
* Reject uploaded descriptors and extrainfo documents if they'reRoger Dingledine2007-12-02
| | | | | | | | huge. Otherwise we'll cache them all over the network and it'll clog everything up. svn:r12633
* minor cleanupsRoger Dingledine2007-12-02
| | | | svn:r12631
* clean up the dirserv_add_multiple_descriptors() apiRoger Dingledine2007-12-02
| | | | svn:r12630
* start to refactor dirserver_mode()Roger Dingledine2007-12-01
| | | | svn:r12621
* karsten's second refactoring patchRoger Dingledine2007-11-29
| | | | svn:r12607
* get rid of the __ConsiderAllRoutersAsHidServDirectories config optionRoger Dingledine2007-11-17
| | | | svn:r12528
* get rid of the separate reachability window for the hsdir flag.Roger Dingledine2007-11-17
| | | | svn:r12527
* The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 networkRoger Dingledine2007-11-17
| | | | | | | | consensus documents when there are too many relays at a single IP address. Now clear it in v2 network status documents too. svn:r12522
* back out r12509 and fix a better bug instead:Roger Dingledine2007-11-17
| | | | | | | | | | | | When authorities detected more than two relays running on the same IP address, they were clearing all the status flags but forgetting to clear the "hsdir" flag. So clients were being told that a given relay was the right choice for a v2 hsdir lookup, yet they never had its descriptor because it was marked as 'not running' in the consensus. svn:r12515
* r16582@catbus: nickm | 2007-11-08 13:14:16 -0500Nick Mathewson2007-11-08
| | | | | | | Try to bulletproof the parse logic for router-stability. svn:r12441
* r16573@catbus: nickm | 2007-11-08 11:57:16 -0500Nick Mathewson2007-11-08
| | | | | | | Mess with the formula for the Guard flag again. Now it requires that you be in the most familiar 7/8 of nodes, and have above median wfu for that 7/8th. See spec for details. Also, log thresholds better. svn:r12440
* r16262@catbus: nickm | 2007-10-29 13:21:35 -0400Nick Mathewson2007-10-29
| | | | | | | Patch from Karsten: Code to act as (and use) v2 hidden service directories. svn:r12272
* Downgrade the mismatched fpr warning to infoPeter Palfrader2007-10-28
| | | | svn:r12257
* r16238@catbus: nickm | 2007-10-28 15:46:10 -0400Nick Mathewson2007-10-28
| | | | | | | Whitespace fix. svn:r12256
* r16195@catbus: nickm | 2007-10-26 18:48:52 -0400Nick Mathewson2007-10-26
| | | | | | | base "Guard" flag on WFU rather than MTBF. Note an issue in the TODO. Roger: thoughts? svn:r12219
* r16154@catbus: nickm | 2007-10-25 10:29:47 -0400Nick Mathewson2007-10-25
| | | | | | | Fix more memory leaks, with help from dmalloc. svn:r12188
* Authorities no longer send back "400 you're unreachable please fixRoger Dingledine2007-10-24
| | | | | | | | it" errors to Tor servers that aren't online all the time. We're supposed to tolerate these servers now. svn:r12136
* When there's no concensus, we were forming a vote every 30Roger Dingledine2007-10-23
| | | | | | | | | | | | | | | | | | | | | | | | minutes, but writing the "valid-after" line in our vote based on our configured V3AuthVotingInterval: so unless the intervals matched up, we immediately rejected our own vote because it didn't start at the voting interval that caused us to construct a vote. This caused log entries like: Oct 23 01:16:16.303 [notice] Choosing expected valid-after time as 2007-10-23 05:30:00: consensus_set=0, interval=1800 ... Oct 23 01:20:01.203 [notice] Choosing valid-after time in vote as 2007-10-23 06:00:00: consensus_set=0, interval=3600 Oct 23 01:20:01.290 [warn] Rejecting vote with valid-after time of 2007-10-23 06:00:00; we were expecting 2007-10-23 05:30:00 Oct 23 01:20:01.291 [warn] Couldn't store my own vote! (I told myself, 'Bad valid-after time'.) Nick, you should look at this, as it's your design. :) svn:r12129
* r16042@catbus: nickm | 2007-10-22 13:30:49 -0400Nick Mathewson2007-10-22
| | | | | | | Move functions into and out of dirvote.c so that it contains all the v3 authority functionality, and no non-authority functionality. svn:r12107
* r15991@catbus: nickm | 2007-10-20 20:08:29 -0400Nick Mathewson2007-10-21
| | | | | | | Fix a nasty bug in DownloadExtraInfo implementation where we would discard, download, discard, download ad infinitum. svn:r12069
* r15966@catbus: nickm | 2007-10-19 13:56:28 -0400Nick Mathewson2007-10-19
| | | | | | | Voting side of proposal 122 svn:r12052
* r15957@catbus: nickm | 2007-10-19 12:22:18 -0400Nick Mathewson2007-10-19
| | | | | | | Report our IP address in our vote if it turns out that our hostname isn't a fqdn. svn:r12047
* r15877@catbus: nickm | 2007-10-17 12:54:56 -0400Nick Mathewson2007-10-17
| | | | | | | 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