aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
AgeCommit message (Collapse)Author
2005-05-17doxygeny goodness from tyranixRoger Dingledine
svn:r4262
2005-05-07Make Tor compile with no warnings with gcc4.0 on OSXNick Mathewson
svn:r4184
2005-05-02reformat routerparse a bitRoger Dingledine
svn:r4155
2005-05-02Remove support for looking at old directory/routerdesc elements; mark ↵Nick Mathewson
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
2005-04-02improved log error messageRoger Dingledine
svn:r3986
2005-04-01update copyright notices.Nick Mathewson
svn:r3982
2005-03-31spell recommended correctlyRoger Dingledine
svn:r3936
2005-03-17Commit fixes for several pending tor core tasks: document all DOCDOCed ↵Nick Mathewson
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
2005-03-01Change version parsing logic: a version is "obsolete" if it is not ↵Nick Mathewson
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
2005-02-25Implement more control spec functionalityNick Mathewson
- 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
2005-02-22Change from inet_ntoa to a threadproof tor_inet_ntoa.Nick Mathewson
svn:r3656
2005-01-29if we fetch the dir from a mirror that has a wildly skewedRoger Dingledine
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
2005-01-06Fix a fun bug: do not rewrite a cached directory back to the cache; ↵Nick Mathewson
otherwise we will think it is recent and not fetch a newer one. svn:r3319
2005-01-04Nothing actually _uses_ socks_port, so why publish it? For backward ↵Nick Mathewson
compatibility, publish a socks_port of 0, and never read socks_port. svn:r3279
2005-01-03Resolve task 42: find where 19-char nicknames were getting truncated when ↵Nick Mathewson
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
2005-01-02fix the assert bug reported by bassclef@163.comRoger Dingledine
svn:r3237
2004-12-04whoopsRoger Dingledine
just because it says snprintf doesn't mean it's a noop svn:r3071
2004-12-04Add function to check that addr_policy_t is okay; change struct ↵Nick Mathewson
addr_policy_t to addr_policy_t. svn:r3070
2004-12-04make circuit building and router parsing less noisyRoger Dingledine
svn:r3068
2004-12-01Spell-check strings and commentsNick Mathewson
svn:r3052
2004-11-30Make version parsing tests passNick Mathewson
svn:r3028
2004-11-29Implement new version format for post 0.1.Nick Mathewson
svn:r3022
2004-11-29Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson
every file. svn:r3019
2004-11-28wrong is ok, and right is fine, but in between is apparentlyRoger Dingledine
totally unacceptable to me. svn:r3005
2004-11-28Normalize space: add one between every control keyword and control clause.Nick Mathewson
svn:r3003
2004-11-26remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine
svn:r2989
2004-11-25when warning that a version is too new, don't use the confusingRoger Dingledine
text "is_obsolete_version():". svn:r2986
2004-11-25Clarify a bunch of log messagesNick Mathewson
svn:r2983
2004-11-22Normalize a few more kinds of whitespace. We now dislike:Nick Mathewson
- func (args) - if (x){ This doesn't normalize if(x), for(x); while(x), and friends. svn:r2943
2004-11-15Tweak on patch to make authoritative directory servers cacheNick Mathewson
directories on disk. Make authdirservers cache *their own* directories instead of the ones they download. This gives better liveness, and marginally better resistance to broken authdirservers. Authdirservers don't cache running-routers at all: r-r isn't stored to disk, so there's no point right now. svn:r2893
2004-11-15Authoritative dirservers now also cache the directory, sinceRoger Dingledine
they weren't writing anything into their datadirectory, so when they stop and start, they would know nothing until they fetched a directory from another authdirserver. svn:r2891
2004-11-15Cache running-routers; compress running-routers; serve compressed ↵Nick Mathewson
running-routers.z svn:r2883
2004-11-14Make running-routers fetch (apparently) workNick Mathewson
svn:r2871
2004-11-12Rename exit_policy to addr_policy, since it gets used for SOCKS and ↵Nick Mathewson
directory connections too. Make all policies get validated in options_validate, and make SOCKS/directory policies get set in options_act. svn:r2819
2004-11-09Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson
target; fix a braino in dirserv.c svn:r2758
2004-11-09Resolve many XXXs and all DOCDOCsNick Mathewson
svn:r2755
2004-11-09only non-authdirservers cache the dir they just fetchedRoger Dingledine
svn:r2747
2004-11-09when rejecting an old-style router descriptor, tell us its nicknameRoger Dingledine
svn:r2730
2004-11-07Clean up copyrights.Roger Dingledine
Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
2004-11-06Make options no longer a global variable.Roger Dingledine
Now we can try setting an option but back out if it fails to parse, or if it's disallowed (e.g. changing RunAsDaemon from 1 to 0). Use parse_line_from_str rather than parse_line_from_file. svn:r2692
2004-11-02Use a stricter set of warnings; make them all pass.Nick Mathewson
svn:r2645
2004-11-02canonicalize "src" and "dest" arg order in crypto.c (and others)Roger Dingledine
svn:r2644
2004-10-28Tweaks to prevent obsolete restarting tors from hammering the dirservers. ↵Nick Mathewson
(1) Cache a received directory as soon as the signature checks out. (2) Treat a cached directory as "recent" based on its mtime. (3) If we have a recent directory, we dont need to fetch a newer one for DirFetchPostPeriod. This needs review! svn:r2618
2004-10-27Tricksy compiler warnings! We hates them, hates them forever, my precious!Nick Mathewson
svn:r2615
2004-10-27Use tor_snprintf, not snprintfNick Mathewson
svn:r2609
2004-10-27Avoid strcat; use snprintf or strlcat insteadNick Mathewson
svn:r2605
2004-10-27Add and document router-status line using new unified liveness/verifiedness ↵Nick Mathewson
format; continue to generate running-routers; continue to parse running-routers when no router-status line is found svn:r2592
2004-10-19Remove routerinfo_t->is_trusted_dir, and all the twisted machinery used toNick Mathewson
maintain it. Have clients default to the nickname "client" in their certificates. Give a less frightening warning on obsolete (pre-0.0.8) routerinfo_t's. svn:r2568
2004-10-17start the process of making 0.0.7* obsoleteRoger Dingledine
svn:r2565
2004-10-16don't assert multiple things in the same tor_assert()Roger Dingledine
svn:r2544