aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
Commit message (Collapse)AuthorAge
* r12639@catbus: nickm | 2007-05-02 17:37:49 -0400Nick Mathewson2007-05-02
| | | | | | | Start implementing key certificate parsing. Note TODO items for combined 101/103. svn:r10097
* New config option V2AuthoritativeDirectory that all directoryRoger Dingledine2007-05-02
| | | | | | | | | | | authorities should set. This will let future authorities choose not to serve V2 directory information. Also, go through and revamp all the authdir_mode stuff so it tries to do the right thing if you're an auth but not a V1 or V2 auth. svn:r10092
* r12619@catbus: nickm | 2007-05-01 16:13:42 -0400Nick Mathewson2007-05-01
| | | | | | | Add code to upload extrainfos to authorities running 0.2.0.0-alpha-dev (r10070) or later. svn:r10086
* r12586@catbus: nickm | 2007-04-30 15:43:05 -0400Nick Mathewson2007-04-30
| | | | | | | More work for proposal 104: actually cache extrainfo documents to disk, and reload the cache properly. svn:r10070
* r12418@catbus: nickm | 2007-04-16 20:58:25 -0400Nick Mathewson2007-04-17
| | | | | | | Twiddle tor_version_as_new_as() so we can check for particular svn revisions. With unit tests, for added freshness. svn:r9977
* r12414@catbus: nickm | 2007-04-16 17:37:17 -0400Nick Mathewson2007-04-16
| | | | | | | More proposal-104 stuff: actually remember extra-info stuff. svn:r9975
* r12403@catbus: nickm | 2007-04-16 13:55:03 -0400Nick Mathewson2007-04-16
| | | | | | | Code to generate extrainfo whenever routerdesc is regenerated; code to check extrainfo against routerdesc. svn:r9970
* r12401@catbus: nickm | 2007-04-16 12:28:01 -0400Nick Mathewson2007-04-16
| | | | | | | Enforce checks for number of arguments to items in directory objects more uniformly. svn:r9968
* r12388@catbus: nickm | 2007-04-16 00:17:29 -0400Nick Mathewson2007-04-16
| | | | | | | Now that the directory parser checks for missing items, the rest of the code can just assert that they are there, rather than checking a second time. svn:r9966
* r12387@catbus: nickm | 2007-04-16 00:06:40 -0400Nick Mathewson2007-04-16
| | | | | | | Refactor router/directory parsing backend: use a separate token table for everything that we parse, and enforce the correct count of each item. svn:r9965
* r12385@catbus: nickm | 2007-04-15 22:55:58 -0400Nick Mathewson2007-04-16
| | | | | | | Initial code to parse extra-info documents as described in proposal 104. This is making me realize that the parsing code in routerparse.c is a little daft. svn:r9963
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500Nick Mathewson2007-03-04
| | | | | | | Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.) svn:r9733
* if we can't read bandwidthrate, at least tell us what it was.Roger Dingledine2007-02-24
| | | | svn:r9640
* r11826@catbus: nickm | 2007-02-16 14:58:38 -0500Nick Mathewson2007-02-16
| | | | | | | Resolve 56 DOCDOC comments. svn:r9594
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* r11700@catbus: nickm | 2007-02-08 02:03:50 -0500Nick Mathewson2007-02-08
| | | | | | | Fix several bugs in computing recommended versions. 1) refactor is-this-version-good handling and which-vesions-are-good handling to be in the same place. 2) a version is recommended if more than half of the versioning authorities like it, not >= half. 3) "NEW_IN_SERIES" should mean, "I don't know of an 0.1.1.x this recent, and there are some 0.1.2.x versions out", not "I don't know of an 0.1.1.x this recent, but I know some older ones." This should resolve bug 383. svn:r9523
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477
* r9715@catbus: nickm | 2007-01-22 02:51:04 -0500Nick Mathewson2007-01-22
| | | | | | | Document a few undocumented functions and arguments. svn:r9385
* avoid a crash-all-the-clients segfault if a rogue dirRoger Dingledine2007-01-04
| | | | | | | authority leaves a "v" line blank. svn:r9262
* r11820@Kushana: nickm | 2007-01-03 14:54:05 -0500Nick Mathewson2007-01-03
| | | | | | | Add (and specify) a BadDirectory flag to networkstatuses, so authorities can tell clients that some caches are broken. Also, implement an as-yet-unused function to estimate how many bytes will be sent on a directory connection. svn:r9255
* r11761@Kushana: nickm | 2006-12-29 15:45:56 -0500Nick Mathewson2006-12-29
| | | | | | | Another cleanup: expand_exit_policy_aliases was totally redundant with respect to router_parse_[private_]addr_policy_private. svn:r9219
* r11737@Kushana: nickm | 2006-12-28 18:32:13 -0500Nick Mathewson2006-12-29
| | | | | | | Remove some dead code; refactor some duplicated code. svn:r9206
* r11736@Kushana: nickm | 2006-12-28 17:46:23 -0500Nick Mathewson2006-12-29
| | | | | | | Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy. svn:r9205
* r11694@Kushana: nickm | 2006-12-23 23:09:20 -0500Nick Mathewson2006-12-24
| | | | | | | Add a version entry to networkstatus documents; have this entry get parsed and used to calculate whether begin_dir is supported. svn:r9181
* r11693@Kushana: nickm | 2006-12-23 22:42:11 -0500Nick Mathewson2006-12-24
| | | | | | | Stop requiring the "opt" keyword before unrecognized directory items. svn:r9180
* Infrastructure to test BEGIN_DIR cells.Roger Dingledine2006-12-13
| | | | | | | | | | New socks command CONNECT_DIR. New config option TunnelDirConns that builds a circ ending at the directory server and delivers a BEGIN_DIR cell if it's running 0.1.2.2-alpha or later. We still need to make one-hop circs when appropriate, while making other conns avoid them. svn:r9098
* r9843@Kushana: nickm | 2006-11-30 17:22:25 -0500Nick Mathewson2006-11-30
| | | | | | | Turn an xxxx0124 into an #ifdef; avoid leaking memory. svn:r9013
* r9313@totoro: nickm | 2006-11-13 20:07:41 -0500Nick Mathewson2006-11-14
| | | | | | | | | | | | | | | | | | | | | | | Try to compile with fewer warnings on irix64's MIPSpro compiler / environment, which apparently believes that: - off_t can be bigger than size_t. - only mean kids assign things they do not subsequently inspect. I don't try to fix the "error" that makes it say: cc-3970 cc: WARNING File = main.c, Line = 1277 conversion from pointer to same-sized integral type (potential portability problem) uintptr_t sig = (uintptr_t)arg; Because really, what can you do about a compiler that claims to be c99 but doesn't understand that void* x = NULL; uintptr_t y = (uintptr_t) x; is safe? svn:r8948
* r9309@totoro: nickm | 2006-11-13 19:05:41 -0500Nick Mathewson2006-11-14
| | | | | | | Whitespace fixes, and clean up code from last natd patch. svn:r8947
* r9465@auth3-479: nickm | 2006-11-01 13:16:21 -0500Nick Mathewson2006-11-01
| | | | | | | Add some temporary code to count how many *distinct* router digests we verify. (I have a sneaking suspicion that the numbers look way way high.) svn:r8890
* r9449@Kushana: nickm | 2006-10-31 00:12:02 -0500Nick Mathewson2006-10-31
| | | | | | | Dump breakdown of PK operations when we get a USR2 signal. This should help us figure out of we are doing some of them for stupid reasons. svn:r8881
* r9091@totoro: nickm | 2006-10-19 11:45:28 -0400Nick Mathewson2006-10-19
| | | | | | | Change to BadExit logic: Let authorities set an "I list bad exits" flag. Consider an exit bad if it is listed as bad by more than half of *those* authorities. This gives us a better migration path. svn:r8756
* r9004@totoro: nickm | 2006-10-11 18:05:24 -0400Nick Mathewson2006-10-11
| | | | | | | | Add client support for a 'BadExit' flag, so authorities can say "Server X is a poor choise for your nytimes.com connections, as it seems to direct them to HoorayForMao.com or (more likely) WouldYouLikeToBuyTheseFineEncyclopedias.com" svn:r8690
* r8957@totoro: nickm | 2006-10-08 22:35:17 -0400Nick Mathewson2006-10-09
| | | | | | | The otherwise regrettable MIPSpro C compiler warns about values set but never used, and about mixing enums and ints; these are good warnings, and so should be fixed. This removes some dead code and some potential bugs. Thanks to pnx. svn:r8664
* r9032@Kushana: nickm | 2006-09-29 18:51:42 -0400Nick Mathewson2006-09-29
| | | | | | | Now, all log messages should be distinct. svn:r8545
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson2006-09-29
| | | | | | | Differentiate more duplicated log entries svn:r8542
* r9023@Kushana: nickm | 2006-09-29 17:27:24 -0400Nick Mathewson2006-09-29
| | | | | | | Make distinct all non-bug messages at notice or higher that appear 3 or more times. svn:r8541
* r8776@totoro: nickm | 2006-09-29 00:50:46 -0400Nick Mathewson2006-09-29
| | | | | | | | | | | Reserve the nickname "Unnamed" for routers that can't pick a hostname; any router can call itself Unnamed; directory servers will never allocate Unnamed to any particular router; clients won't believe that any router is the canonical Unnamed. svn:r8529
* r8872@Kushana: nickm | 2006-09-21 14:00:20 -0400Nick Mathewson2006-09-21
| | | | | | | Implement server-side reverse DNS using eventdns. Add an option to routerdescs so we can tell which servers have eventdns enabled. svn:r8437
* Stop searching routerlist for routers with the same identity as other ↵Nick Mathewson2006-09-19
| | | | | | routers (on router insert): we already have a map for that. (We need to add an index field to routerinfo_t so we can figure out which point in the routerlist to replace.) Also, add a comment to routerlist.c; arma, please advise? svn:r8432
* r8819@Kushana: nickm | 2006-09-15 00:27:45 -0400Nick Mathewson2006-09-15
| | | | | | | Implement a smartlist_uniq() that will with luck not end the world. svn:r8396
* r8692@Kushana: nickm | 2006-08-31 13:38:07 -0400Nick Mathewson2006-08-31
| | | | | | | Fix bug 327 (part 2): Cast char to unsigned char before passing to toupper/tolower. (Follow the same idiom as with isupper and friends, in case we run into the same problem on SGI or whereever it was.) svn:r8310
* remove some more vestiges of cvsRoger Dingledine2006-08-26
| | | | svn:r8229
* Remove code to special-case "-cvs" ending, since it has not actually ↵Nick Mathewson2006-07-25
| | | | | | mattered since 0.0.9. Perhaps we can special-case even more... svn:r6898
* Fix a bunch of spaces.Nick Mathewson2006-06-22
| | | | svn:r6678
* Set offset properly when parsing cache.Nick Mathewson2006-06-22
| | | | svn:r6677
* Next batch of memory miserdom: mmap cached-routers file. This is sure to ↵Nick Mathewson2006-06-22
| | | | | | break somewhere. svn:r6675
* 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