aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
Commit message (Collapse)AuthorAge
* oops -- that log should have been removedNick Mathewson2005-09-08
| | | | svn:r4939
* Fix network-status parsing.Nick Mathewson2005-09-08
| | | | svn:r4938
* Fix another reversed inet_atonNick Mathewson2005-09-08
| | | | svn:r4937
* Fix some more bugs; add a temporary log.Nick Mathewson2005-09-08
| | | | svn:r4936
* Stop dying when we get a directory from tor26; workaround for change in ↵Nick Mathewson2005-09-08
| | | | | | networkstatus format svn:r4933
* clean whitespace.Nick Mathewson2005-09-07
| | | | svn:r4912
* 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
* Comment structs, reload a field, start making network status caches workNick Mathewson2005-09-04
| | | | svn:r4908
* Make structs for (v2) network-status and its per-router components. Add ↵Nick Mathewson2005-09-02
| | | | | | functions to parse them. Re-do the parsing logic a litt.e. Change signatures in or.h to support new DNS TTL logic. svn:r4898
* Actually set is_hibernating when parsing router descriptors.Nick Mathewson2005-08-30
| | | | svn:r4888
* 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
* 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
* 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
* the tor-spec says router->address must be an IP address. so refuseRoger Dingledine2005-08-16
| | | | | | | | | | it if it's not. (this also fixes some potential security problems with people providing hostnames as their address and then preferentially resolving them and partitioning users.) svn:r4790
* check_software_version_against_directory needs a return value.Nick Mathewson2005-08-09
| | | | svn:r4755
* Replace (Fascist)Firewall* with a new ReachableAddresses option that ↵Nick Mathewson2005-08-08
| | | | | | understands address policies. svn:r4751
* get rid of IgnoreVersion and the forced auto-exit mis-featureRoger Dingledine2005-08-08
| | | | svn:r4746
* It is not the end of the world when a router descriptor has an unrecognized kwdNick Mathewson2005-06-24
| | | | svn:r4480
* 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
* doxygeny goodness from tyranixRoger Dingledine2005-05-17
| | | | svn:r4262
* Make Tor compile with no warnings with gcc4.0 on OSXNick Mathewson2005-05-07
| | | | svn:r4184
* reformat routerparse a bitRoger Dingledine2005-05-02
| | | | svn:r4155
* Remove support for looking at old directory/routerdesc elements; mark ↵Nick Mathewson2005-05-02
| | | | | | non-new elements optional; switch to new format for dir-signing-key; start accepting newer elements so we can mark them as non-opt later; make tor-spec say the right stuff. svn:r4154
* improved log error messageRoger Dingledine2005-04-02
| | | | svn:r3986
* update copyright notices.Nick Mathewson2005-04-01
| | | | svn:r3982
* spell recommended correctlyRoger Dingledine2005-03-31
| | | | svn:r3936
* Commit fixes for several pending tor core tasks: document all DOCDOCed ↵Nick Mathewson2005-03-17
| | | | | | functions; time out uncontrolled unattached streams; feed reasons to SOCKS5 (refactoring connection_ap_handshake_socks_reply in the process); change DirFetchPeriod/StatusFetchPeriod to have a special "Be smart" value. svn:r3769
* Change version parsing logic: a version is "obsolete" if it is not ↵Nick Mathewson2005-03-01
| | | | | | recommended and (1) there is a newer recommended version in the same series, or (2) there are no recommended versions in the same series, but there are some recommended versions in a newer series. A version is "new" if it is newer than any recommended version in the same series. svn:r3716
* Implement more control spec functionalityNick Mathewson2005-02-25
| | | | | | | | | | | | | | | | | | - Mapaddress - Postdescriptor - GetInfo on descriptors Required changes elsewhere: - Keep the most recent running_routers_t in the routerlist_t. That way we can learn about new routers and remember whether we were last told that they were up or down. Also enables more simplifications. - Keep the signed descriptor inside routerinfo_t. This makes descriptor_entry_t in dirservers.c unneeded. - Rename AddressMap (the verb) to MapAddress. Keep AddressMap as a noun. - Check addresses for plausibility before mapping them. svn:r3696
* Change from inet_ntoa to a threadproof tor_inet_ntoa.Nick Mathewson2005-02-22
| | | | svn:r3656
* if we fetch the dir from a mirror that has a wildly skewedRoger Dingledine2005-01-29
| | | | | | | | | | | | clock, then don't bother checking recommended-versions: it will just make us sad. as a side effect, people running obsolete versions and whose clocks are wildly skewed will not be auto-shut-down. but they will still get warns about their clock skew. svn:r3459
* Fix a fun bug: do not rewrite a cached directory back to the cache; ↵Nick Mathewson2005-01-06
| | | | | | otherwise we will think it is recent and not fetch a newer one. svn:r3319
* Nothing actually _uses_ socks_port, so why publish it? For backward ↵Nick Mathewson2005-01-04
| | | | | | compatibility, publish a socks_port of 0, and never read socks_port. svn:r3279
* Resolve task 42: find where 19-char nicknames were getting truncated when ↵Nick Mathewson2005-01-03
| | | | | | read from certs, and fix it. Also audit use of MAX_NICKNAME_LEN; no other badness found, but some docs/code cleaned up a touch. svn:r3244
* fix the assert bug reported by bassclef@163.comRoger Dingledine2005-01-02
| | | | svn:r3237
* whoopsRoger Dingledine2004-12-04
| | | | | | | just because it says snprintf doesn't mean it's a noop svn:r3071
* Add function to check that addr_policy_t is okay; change struct ↵Nick Mathewson2004-12-04
| | | | | | addr_policy_t to addr_policy_t. svn:r3070
* make circuit building and router parsing less noisyRoger Dingledine2004-12-04
| | | | svn:r3068
* Spell-check strings and commentsNick Mathewson2004-12-01
| | | | svn:r3052
* Make version parsing tests passNick Mathewson2004-11-30
| | | | svn:r3028
* Implement new version format for post 0.1.Nick Mathewson2004-11-29
| | | | svn:r3022
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* wrong is ok, and right is fine, but in between is apparentlyRoger Dingledine2004-11-28
| | | | | | | totally unacceptable to me. svn:r3005
* Normalize space: add one between every control keyword and control clause.Nick Mathewson2004-11-28
| | | | svn:r3003
* remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine2004-11-26
| | | | svn:r2989
* when warning that a version is too new, don't use the confusingRoger Dingledine2004-11-25
| | | | | | | text "is_obsolete_version():". svn:r2986
* Clarify a bunch of log messagesNick Mathewson2004-11-25
| | | | svn:r2983