aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
Commit message (Collapse)AuthorAge
* Start remembering *where* we are storing routerdescs. This will make us ↵Nick Mathewson2006-04-29
| | | | | | easier to move from a RAM-mirrors-disk model to a RAM-caches-disk model, and save maybe around 10MB on a directory server. svn:r6427
* Remove DER64 functions in trunk: they will never be used again unless the ↵Nick Mathewson2006-04-10
| | | | | | directory authorities switch back to 0.0.9tooearly. svn:r6376
* In fairness to gcc, a char** is often _not_ usable as a const void **.Nick Mathewson2006-04-10
| | | | svn:r6355
* Oops. _compare_tor_version_str_ptr wants ptr-to-ptr. Ow.Nick Mathewson2006-04-10
| | | | svn:r6354
* bugfix in sort_version_list() so it doesn't screw up the sorting.Roger Dingledine2006-04-03
| | | | svn:r6308
* fix some xxxs.Nick Mathewson2006-04-03
| | | | svn:r6307
* Refactor and consolidate addr/exit policies into a new policies.c.Roger Dingledine2006-03-27
| | | | | | | Fix some minor bugs and memory leaks along the way. svn:r6246
* Allow non-printable characters for exit streams (both forRoger Dingledine2006-03-19
| | | | | | | | | connecting and for resolving). Now we tolerate applications that don't follow the RFCs. But continue to block malformed names at the socks side. svn:r6193
* Finish the transition from the word 'verified' to the wordsRoger Dingledine2006-03-19
| | | | | | | 'named' and 'valid'. svn:r6188
* Add some functions to escape values from the network before sending them to ↵Nick Mathewson2006-03-05
| | | | | | the log. Use them everywhere except for routerinfo->plaftorm, routerinfo->contact_info, and rend*.c. (need sleep now) svn:r6087
* Allow private:* in routerdescs; not generated yet (because older Tors do not ↵Nick Mathewson2006-03-05
| | | | | | understand it); needs testing. svn:r6086
* the last of the log convention conversion. finally.Roger Dingledine2006-02-13
| | | | svn:r6005
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Move "sort list of versions" logic into routerparse.c; make version-checking ↵Nick Mathewson2006-02-06
| | | | | | code say which versions it would have accepted. (not tested.) svn:r5927
* typos and nitsRoger Dingledine2006-02-05
| | | | svn:r5911
* Make dirservers generate a separate "guard" flag to mean, "would make a good ↵Nick Mathewson2006-01-24
| | | | | | entry guard". Make clients parse it and vote on it. svn:r5856
* remove unused codeRoger Dingledine2006-01-20
| | | | svn:r5847
* Indirect access to the signed_descriptor field to make it easier to keep ↵Nick Mathewson2006-01-12
| | | | | | them lazily on disk. svn:r5827
* bugfix: we were failing to parse a tor version that started withRoger Dingledine2006-01-02
| | | | | | | "Tor ", even though we said we could. svn:r5699
* Whitespace fixes; comments.Nick Mathewson2005-12-15
| | | | svn:r5596
* Remove some redundant and obsolete code from routerparseNick Mathewson2005-12-15
| | | | svn:r5594
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* Have dirctory authorites note which servers make good V2 directory caches in ↵Nick Mathewson2005-12-12
| | | | | | publishe network-status. svn:r5574
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551
* remove some functions that are not used; #if0 out some files that are not ↵Nick Mathewson2005-11-30
| | | | | | likely to be used. svn:r5471
* Verify that router fingerprint lines match identity keys. (We dont use them, ↵Nick Mathewson2005-11-15
| | | | | | but others might.) svn:r5389
* On directory servers, old_routers was wasting hundreds of bytes per ↵Nick Mathewson2005-11-05
| | | | | | superseded router descriptor. Roll the signed descriptor info and identifying info into a cache_info struct, and use only that for old_routers. svn:r5349
* Fix bug when parsing list of router descriptors containing a truncated ↵Nick Mathewson2005-10-28
| | | | | | entry. (Found by Lasse) svn:r5327
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" ↵Nick Mathewson2005-10-25
| | | | | | domain. Domains are now bitmasks... just in case. Make some err msgs non-general. svn:r5309
* Use LD_BUG as appropriate; convert rend* and router* to new logging ↵Nick Mathewson2005-10-24
| | | | | | interface; use new circ_log_path interface svn:r5302
* fix some typosRoger Dingledine2005-10-18
| | | | svn:r5283
* Try to extract as many descriptors as possible from truncated http ↵Nick Mathewson2005-10-14
| | | | | | responses. (when DIR_PURPOSE_FETCH_ROUTERDESC) svn:r5249
* Strip extra trailing newlines when parsing router descriptors.Nick Mathewson2005-10-07
| | | | svn:r5212
* Try to hunt down a few more leaksNick Mathewson2005-09-30
| | | | svn:r5172
* Resolve several DOCDOCs. Make non-mirrors only launch routerdesc downloads ↵Nick Mathewson2005-09-30
| | | | | | when they have more than 16 router descriptors to download, or when 10 minutes have passed since the last download. svn:r5166
* clean up some doxygen stuffRoger Dingledine2005-09-29
| | | | svn:r5147
* Only check versions from versioning authdirs.Nick Mathewson2005-09-21
| | | | svn:r5101
* Implement new version handling code.Nick Mathewson2005-09-21
| | | | svn:r5100
* clean up a bit more codeRoger Dingledine2005-09-20
| | | | svn:r5098
* Prevent a "try forever to download an unobtainable descriptor" bug. Still ↵Nick Mathewson2005-09-18
| | | | | | remaining: the "give up forever" bug. svn:r5090
* 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
* Remove a bunch of #if0d code that I no longer need to look at.Nick Mathewson2005-09-16
| | | | svn:r5083
* Resolve/expand some XXXXs and improve a log message or twoNick Mathewson2005-09-16
| | | | svn:r5082
* 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
* Fix a bunch of log messages. Deprecate some routerlist fields; remove ↵Nick Mathewson2005-09-14
| | | | | | others, and status_set_at from routerinfo_t. Compress routerlist.c cleanup functions. Update cached networkstatus mtime when we download the same one twice. Change some interfaces. svn:r5068
* Would you believe that the software_versions field of routerlist_t was never ↵Nick Mathewson2005-09-14
| | | | | | actually used for anything? svn:r5064
* Big commit: clients start downloading and using network-statuses.Nick Mathewson2005-09-14
| | | | | | | | | | | | | | | | | | | | | Only caches need to get running-routers; nobody needs to parse, store, or use it. Same for the router-status line in the directories. Add many #if 0's that can get removed once I'm convinced they don't contain anything I'm forgetting. Start all newly-parsed routers as non-running and non-valid; update them from the list of network statuses. Update all routers when a new networkstatus comes in. After 3 tries for a networkstatus, clients give up until they're told to try again. "Let's get those missles ready to **DESTROY THE UNIVERSE**!" -TMBG svn:r5063
* add docs, fix whitespace, and make ANY rule in routerparse a little tighter.Nick Mathewson2005-09-13
| | | | svn:r5031
* 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