aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
...
* Implement new version handling code.Nick Mathewson2005-09-21
| | | | svn:r5100
* make router_is_general_exit match its documentationRoger Dingledine2005-09-20
| | | | | | | but it's still wrong maybe svn:r5095
* Move to new base64 digest functions. Switch to new router digest ↵Nick Mathewson2005-09-18
| | | | | | calculation. Make sure there are no duplicates in router status lists. svn:r5088
* Unify our "figure out which fingerprints we were downloading" code.Nick Mathewson2005-09-16
| | | | svn:r5077
* fix braino in dirserv.Nick Mathewson2005-09-15
| | | | svn:r5075
* Make authdirs smarter. Reject/invalidate by key and IP. Remember that not ↵Nick Mathewson2005-09-15
| | | | | | every authdir has to be a naming authdir. svn:r5074
* And some documentation before bed.Nick Mathewson2005-09-15
| | | | svn:r5073
* Stop downloading directories and download routers instead. This still needs ↵Nick Mathewson2005-09-15
| | | | | | some work, but at last clients are finally on the new architecture. Next comes the tuning and bugfixing. svn:r5070
* separate validation from naming in authoritative directory servers; simplify ↵Nick Mathewson2005-09-15
| | | | | | some router-management code. svn:r5069
* Oops. directory_set_dirty() needs to mark networkstatus as dirty too.Nick Mathewson2005-09-14
| | | | svn:r5066
* Clean up a few warnings that make gcc twig out a bit.Nick Mathewson2005-09-14
| | | | svn:r5062
* add docs, fix whitespace, and make ANY rule in routerparse a little tighter.Nick Mathewson2005-09-13
| | | | svn:r5031
* fix a seg fault if we ask an authdirserver for a descriptor byRoger Dingledine2005-09-13
| | | | | | | fingerprint but he doesn't know about him. svn:r5023
* make the patch less likely to bite us laterRoger Dingledine2005-09-12
| | | | svn:r5021
* Maybe I should pay more attention to return values and less to clever ↵Nick Mathewson2005-09-12
| | | | | | comments. Fortunately, the aforementioned comments came out against smacking upside the head. svn:r5018
* Versions should be sorted by version. Lexical sorting should be used only as ↵Nick Mathewson2005-09-12
| | | | | | a last resort. svn:r5017
* when writing the recommended*versions lines, sort them first.Roger Dingledine2005-09-12
| | | | | | | | this is because weasel put his out of order and told me the code should take care of it. svn:r5016
* Numerous changes to move towards client-side v2 directories.Nick Mathewson2005-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connection.c: - Add some more connection accessor functions to make directory download redundancy checking work. directory.c, or.h, router.c, routerlist.c: - Start on logic to note when networkstatus downloads fail. dirserv.c, routerlist.c, routerparse.c: - Start maintaining an is_named field in routerstatus_t. Don't actually look at it yet. dirserv.c, routerlist.c: - Remove expired networkstatus objects. or.h: - Make some booleans into bitfields - Add prototypes routerlist.c: - Sort networkstatus list by publication time - Function to remove old (older than 10 days) networkstatus objects. - Function to set a list of routerinfo_ts' status info from the current set of networkstatus objects. - Function to tell which routerinfos we need to download based no the current set of networkstatus objects. - Do not launch a networkstatus download if a redundant one is in progress. routerparse.c: - Keep router entries in networkstatus sorted by digest. svn:r5012
* downgrade warning to infoNick Mathewson2005-09-09
| | | | svn:r4967
* Warn in more detail when network-status serving and fetching fails. Also, ↵Nick Mathewson2005-09-09
| | | | | | fix a small leak. svn:r4963
* Iteration is happier when you stop.Nick Mathewson2005-09-08
| | | | svn:r4950
* Resolve some XXXs. Add some others.Nick Mathewson2005-09-08
| | | | svn:r4947
* Do not generate more than 2 of each directory type per minute.Nick Mathewson2005-09-08
| | | | svn:r4946
* Fix an assert in directory.c. Check received network-status objects against ↵Nick Mathewson2005-09-08
| | | | | | the list we expected to get. Do not let anyone else update our network-status object. svn:r4945
* Only caches download network-status for now, and they use a different ↵Nick Mathewson2005-09-08
| | | | | | strategy. Add an element to connection_t to remember what we are downloading, and a function to recognize our own fingerprint. svn:r4944
* 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