aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
* Special-case for retrieving own networkstatus by fingerprint: regenerate if ↵Nick Mathewson2005-09-08
| | | | | | dirty! svn:r4943
* Ensure case match, not mismatch.Nick Mathewson2005-09-08
| | | | svn:r4935
* Avoid assertion failureNick Mathewson2005-09-08
| | | | svn:r4931
* and fix grammarRoger Dingledine2005-09-08
| | | | svn:r4925
* Make GCC v4 happy with heavy warnings enabled.Nick Mathewson2005-09-08
| | | | svn:r4922
* clean up comments for router_is_general_exit()Roger Dingledine2005-09-08
| | | | svn:r4917
* More stuff for new directories.Nick Mathewson2005-09-07
| | | | | | | | | | | | | | | | | | | | | | - Distinguish v1 authorities (all currently trusted directories) from v2 authorities (all trusted directories). - Add configuration option for which dirs are v1 authories. - Add configuration option for whether to be a v1 authority. - Make trusted dirserver selection functions take options to choose which functionality we need. - Remove option when getting directory cache to see whether they support running-routers; they all do now. Replace it with one to see whether caches support v2 stuff. - Parse, cache, and serve network-status objects properly. - Serve compressed groups of router descriptors. The compression logic here could be more memory-efficient. - svn:r4911
* remove redundant logs about unreachable serversRoger Dingledine2005-09-03
| | | | svn:r4905
* fix order of items in network-statusNick Mathewson2005-09-03
| | | | svn:r4904
* Add contact field to generated network-status objectsNick Mathewson2005-09-02
| | | | svn:r4897
* subtle change to avoid some false positives:Roger Dingledine2005-09-01
| | | | | | | | | | if a server went down for six hours and then came back, we would complain to it that it's unreachable. now we wait until the third consecutive descriptor post that we thought it was unreachable, before complaining to it. svn:r4891
* when we think a router is unreachable, pass the message back to theRoger Dingledine2005-08-31
| | | | | | | | server's logs, and make it a 'warn'. also, fix a memory leak for rejected router descriptors. svn:r4889
* don't whine about reachability if the guy is hibernating now.Roger Dingledine2005-08-30
| | | | | | | | speaking of which, we don't actually parse is_hibernating out of the router descriptor right now. nick, can you fix this? svn:r4886
* refactor -- no actual changesRoger Dingledine2005-08-30
| | | | svn:r4885
* a bit of cleanupRoger Dingledine2005-08-30
| | | | svn:r4884
* Update routerinfo_t.is_running when generating network status on authdirserver.Nick Mathewson2005-08-29
| | | | svn:r4883
* Change semantics of set_cached_dir; fix massive authdir memleak.Nick Mathewson2005-08-28
| | | | svn:r4880
* Set a variable that exists. That works better.Nick Mathewson2005-08-26
| | | | svn:r4868
* Remember to mark v2 networkstatus non-dirty when we generate it; also, fix ↵Nick Mathewson2005-08-26
| | | | | | spaces. svn:r4866
* fix some logs and commentsRoger Dingledine2005-08-26
| | | | svn:r4864
* Change the return values on dirserv_add_descriptorNick Mathewson2005-08-26
| | | | svn:r4863
* fix compile complaints (and a bug)Roger Dingledine2005-08-26
| | | | svn:r4862
* We no longer need dirserv_load_from_directory_string, so ↵Nick Mathewson2005-08-26
| | | | | | dirserv_add_descriptor no longer has to keep track of where each descriptor ends. svn:r4861
* Make network-status strings wellformedNick Mathewson2005-08-26
| | | | svn:r4857
* Note that a descriptor has changed when we receive a new directory.Nick Mathewson2005-08-26
| | | | svn:r4855
* Remove descriptor_list and use routerlist instead. Make directories manage ↵Nick Mathewson2005-08-26
| | | | | | routerlist a little better. svn:r4854
* if dirservers set assumereachable, it overrides their individualRoger Dingledine2005-08-26
| | | | | | | reachability testing svn:r4851
* Only free strmap if it is allocated.Nick Mathewson2005-08-26
| | | | svn:r4846
* fix syntax errNick Mathewson2005-08-26
| | | | svn:r4843
* More documentingNick Mathewson2005-08-26
| | | | svn:r4842
* Add some documentation; move the signature generation logic into ↵Nick Mathewson2005-08-26
| | | | | | routerparse.c along with the hash generation logic; make router signing use it as well. svn:r4840
* Fall back to routerlist instead of descriptor_list when we are a cache.Nick Mathewson2005-08-25
| | | | svn:r4837
* Fix a segfault when starting a dir cacheNick Mathewson2005-08-25
| | | | svn:r4836
* Start implementing the server side of the new directory protocol.Nick Mathewson2005-08-25
| | | | | | | | | | | | | | | | | | | | | | | Probably very buggy, since I can't actually run an authdir. Features - Generate and publish new network-status format - Code to cache and re-serve network-status objects generated by others. - Publish individual descriptors (by fingerprint, by "all", and by "tell me yours.") [Still needs compression logic] - Publish client and server recommended versions seprately. - Add digest of descriptor to routerinfo_t, so we can track them better, and length, so we can server them more easily. Cleanups - Unify code to sign directory-like things - Make resolve_my_address() able to tell you which name it wound up resolving. - Unify code to store and serve directory-like things so it all uses cached_dir_t. - Unify code to set the value of cached_dir_t objects. svn:r4835
* be much more conservative about logging reachability complaints.Roger Dingledine2005-08-24
| | | | | | | the ones it logs now are probably genuine problem servers. svn:r4832
* Dirservers now do their own external reachability testing of eachRoger Dingledine2005-08-24
| | | | | | | | | | | | | Tor server, and only list them as running if they've been found to be reachable. Dirservers also log trouble servers, but only start complaining loudly after they've been up for an hour, to reduce false positives. We still need to do something about the fact that it is quite loud when there are many trouble servers. svn:r4829
* fix bug 180: handle duplicate lines in approved-routers files.Nick Mathewson2005-08-23
| | | | svn:r4825
* when listing min-bandwidth servers in the controller, don't getRoger Dingledine2005-08-14
| | | | | | | fooled by a low bandwidthrate svn:r4777
* let unregistered-servers take a parameter (the min bandwidth)Roger Dingledine2005-08-13
| | | | | | | nick, is this an ugly hack of your protocol? svn:r4775
* Add a 'quit' command for the controller.Roger Dingledine2005-08-13
| | | | | | | Add a 'getinfo unregistered-servers' for arma's internal use. svn:r4774
* Be consistent about preferring foo* to struct foo*Nick Mathewson2005-07-22
| | | | svn:r4637
* anonymous bugfix on our pointer arithmeticRoger Dingledine2005-07-12
| | | | svn:r4535
* Fix unit tests that used old signature for add_fingerprint_to_dirNick Mathewson2005-06-27
| | | | svn:r4495
* more cleanups before i go wildRoger Dingledine2005-06-21
| | | | svn:r4469
* overall cleanup and streamlining and doccingRoger Dingledine2005-06-20
| | | | | | | also fix a DoS avenue on dirservers svn:r4468
* Remove code that has been #if-0ed for a long time.Nick Mathewson2005-06-15
| | | | svn:r4435
* Docment or add DOCDOC comments to undocumented functions in src/or. Make ↵Nick Mathewson2005-06-11
| | | | | | function definition format uniform. svn:r4411
* flesh out the source file descriptions for doxygenRoger Dingledine2005-06-11
| | | | svn:r4404
* Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson2005-06-09
| | | | svn:r4382
* when a dirserver gets a mismatched fingerprint, log the expectedRoger Dingledine2005-06-09
| | | | | | | fp and the received fp svn:r4372