aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* r12812@catbus: nickm | 2007-05-19 16:17:36 -0400Nick Mathewson2007-05-19
| | | | | | | Fix compilation with -O0; add unit tests for swap and shuffle. svn:r10223
* r12810@catbus: nickm | 2007-05-19 16:08:42 -0400Nick Mathewson2007-05-19
| | | | | | | Fix bugs in extrainfo_insert, and change it to use desc_by_eid_map. svn:r10222
* r12808@catbus: nickm | 2007-05-19 14:48:51 -0400Nick Mathewson2007-05-19
| | | | | | | Fix another consistency error. svn:r10221
* r12805@catbus: nickm | 2007-05-19 14:31:00 -0400Nick Mathewson2007-05-19
| | | | | | | Fix a groovy memory corruption bug in routerlist_replace. svn:r10220
* r12804@catbus: nickm | 2007-05-19 14:21:18 -0400Nick Mathewson2007-05-19
| | | | | | | Disable a blatantly incorrect control event with potential for memory corruption. svn:r10219
* r12802@catbus: nickm | 2007-05-19 14:12:27 -0400Nick Mathewson2007-05-19
| | | | | | | clear some ram when freeing it; add some more checks to assert_routerlist_ok. svn:r10218
* r12800@catbus: nickm | 2007-05-18 20:45:15 -0400Nick Mathewson2007-05-19
| | | | | | | Possible fix for bug 417 and bug 404: do not insert our routerinfo directly; instead, re-parse it first. svn:r10217
* r12798@catbus: nickm | 2007-05-18 20:31:54 -0400Nick Mathewson2007-05-19
| | | | | | | Yet more debugging code to track down 417/404, inspired by a fun core from arma. svn:r10216
* r12794@catbus: nickm | 2007-05-18 20:24:26 -0400Nick Mathewson2007-05-19
| | | | | | | Make caches-extra-info lines parseable. svn:r10215
* found this in my sandboxRoger Dingledine2007-05-19
| | | | svn:r10214
* r12790@catbus: nickm | 2007-05-18 17:24:26 -0400Nick Mathewson2007-05-18
| | | | | | | Fix build on gcc 4.2 svn:r10212
* r12982@Kushana: nickm | 2007-05-18 15:15:14 -0400Nick Mathewson2007-05-18
| | | | | | | Partial backport candidate: We had a bug where we were downloading descriptors by descriptor digest, but trying to look them up by identity fingerprint when updating their failure count and next retry time. (Also use correct backoff logic for extrainfo code.) Needs testing, doubtless. svn:r10210
* r12981@Kushana: nickm | 2007-05-18 14:12:19 -0400Nick Mathewson2007-05-18
| | | | | | | First cut at code to download extra-info docs. Also note a bad bug in directory.c (look for the string BUG BUG BUG). svn:r10209
* r12980@Kushana: nickm | 2007-05-18 14:11:05 -0400Nick Mathewson2007-05-18
| | | | | | | Add a "swap" function to smartlist, add a "shuffle" function for smartlist to crypto.c, and make appropriate hashtable functions be more const. svn:r10208
* r12777@catbus: nickm | 2007-05-16 21:52:23 -0400Nick Mathewson2007-05-17
| | | | | | | Fix dumb bug introduced in r10199 svn:r10202
* r12771@catbus: nickm | 2007-05-16 18:12:32 -0400Nick Mathewson2007-05-16
| | | | | | | Make -Wstrict-overflow=5 happy with GCC 4.2. It is kind of a pain, but it does agood job of letting us know where we can make our code better by simplifying dependent conditionals. svn:r10201
* r12770@catbus: nickm | 2007-05-16 17:49:26 -0400Nick Mathewson2007-05-16
| | | | | | | Move around field order a little, in order to compact some structures. (Thanks to -Wpadded) svn:r10200
* r12769@catbus: nickm | 2007-05-16 17:32:01 -0400Nick Mathewson2007-05-16
| | | | | | | Fix warnings from -Wunsafe-loop-optimizations, which incidentally turned up a logic bug in connection_or_flush_from_first_active_circuit that would overcount the number of cells flushed. svn:r10199
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson2007-05-16
| | | | | | | Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198
* r12764@catbus: nickm | 2007-05-15 17:17:39 -0400Nick Mathewson2007-05-15
| | | | | | | Enable (and cope with) more GCC 4.2 warnings. svn:r10196
* r12763@catbus: nickm | 2007-05-15 05:29:33 -0400Nick Mathewson2007-05-15
| | | | | | | Make --enable-gcc-warnings happy on the upcoming gcc 4.2 svn:r10195
* r12761@catbus: nickm | 2007-05-15 03:13:52 -0400Nick Mathewson2007-05-15
| | | | | | | Be a lot smarter when parsing lists of routers and extrainfos. svn:r10193
* r12758@catbus: nickm | 2007-05-14 15:19:29 -0400Nick Mathewson2007-05-14
| | | | | | | Cleanup, lock-down, and refactor bits of routerparse.c: use a single unified function to check all signatures. Fix all DOCDOCs. Remove some old dead debugging code. Enforce some parsing rules better. svn:r10192
* backport candidate: seems to me that r10153 won't work withoutRoger Dingledine2007-05-14
| | | | | | | this patch too. svn:r10187
* r12750@catbus: nickm | 2007-05-13 10:08:13 -0400Nick Mathewson2007-05-13
| | | | | | | Fix compilation in connection_edge.c svn:r10186
* polish r9726-r9903Roger Dingledine2007-05-13
| | | | svn:r10182
* If a directory authority is down, skip it when deciding where to getRoger Dingledine2007-05-12
| | | | | | | | | networkstatus objects or descriptors. Otherwise we keep asking every 10 seconds forever. (adapted from r9880) svn:r10175
* r12708@catbus: nickm | 2007-05-10 15:18:08 -0400Nick Mathewson2007-05-10
| | | | | | | Patch from shibz: implement a getinfo status/version/... so a controller can tell whether the current version is recommended, whether any versions are good, and how many authorities agree. svn:r10162
* r12935@Kushana: nickm | 2007-05-10 11:25:09 -0400Nick Mathewson2007-05-10
| | | | | | | Make buffer unit tests pass again svn:r10158
* backport candidate: when we have k non-v2 authorities in ourRoger Dingledine2007-05-10
| | | | | | | | | | | dirservers lines, we ignored as many as k v2 authorities while updating our network-statuses. (not a problem right now since we have zero non-v2 authorities. but if we ever change that...) svn:r10157
* Backport candidate: if all of our dirservers have given usRoger Dingledine2007-05-10
| | | | | | | | bad or no networkstatuses lately, then stop hammering them once per minute even if we think they're failed. svn:r10156
* backport candidate:Roger Dingledine2007-05-10
| | | | | | | | | | If a directory server runs out of space in the connection table as it's processing a begin_dir request, it will free the exit stream but leave it attached to the circuit, leading to unpredictable behavior. (Reported by seeess, fixes bug 425.) svn:r10154
* Backport candidate: count it as a failure if we fetch a valid Roger Dingledine2007-05-10
| | | | | | | | network-status but we don't want to keep it. Otherwise we'll keep fetching it and keep not wanting to keep it. Fixes part of bug 422. svn:r10153
* fix a printf size_t/int mismatch from r10150Roger Dingledine2007-05-10
| | | | svn:r10152
* move a few more situations over to the authority_type_t bitfieldRoger Dingledine2007-05-10
| | | | svn:r10151
* r12706@catbus: nickm | 2007-05-09 18:39:46 -0400Nick Mathewson2007-05-09
| | | | | | | Keep two freelists for buffer ram chunks: one of 4k chunks, and one of 16k chunks. Also, document the whole business. svn:r10150
* r12704@catbus: nickm | 2007-05-09 17:43:34 -0400Nick Mathewson2007-05-09
| | | | | | | Periodically clean the freelist of buffer memory chunks. svn:r10149
* r12700@catbus: nickm | 2007-05-09 17:22:53 -0400Nick Mathewson2007-05-09
| | | | | | | [Backport candidate] On windows, open cached-routers with the sharing mode "FILE_SHARE_READ so that other processes can read it while Tor is running. (Reported by Janbar). svn:r10148
* r12697@catbus: nickm | 2007-05-09 00:15:40 -0400Nick Mathewson2007-05-09
| | | | | | | Change authority_type_t to a set of flags; use it more consistently. svn:r10144
* complain when we try to upload to, say, bridge authorities,Roger Dingledine2007-05-09
| | | | | | | yet we didn't configure any first. svn:r10143
* Interim commit: new config options Bridge and UseBridges.Roger Dingledine2007-05-08
| | | | | | | | | It is becoming increasingly clear to me that bridges should be a special case of entry guards, not a whole separate pile of nearly identical functions. svn:r10141
* When we are reporting the DirServer line we just parsed, we wereRoger Dingledine2007-05-08
| | | | | | | logging the second stanza of the key fingerprint, not the first. svn:r10140
* record the router purpose at each step of the circuit path.Roger Dingledine2007-05-08
| | | | | | | i have the feeling this will come in handy. svn:r10139
* clean up some function argument namesRoger Dingledine2007-05-08
| | | | svn:r10138
* use the new _PublishServerDescriptor to publish descriptors eitherRoger Dingledine2007-05-08
| | | | | | | to v2 authorities or to bridge authorities, depending on config. svn:r10137
* Change the PublishServerDescriptor config option from a booleanRoger Dingledine2007-05-08
| | | | | | | | into a string: "v1", "v2", bridge", "". Continue to support "0" and "1". svn:r10136
* r12676@catbus: nickm | 2007-05-07 13:11:38 -0400Nick Mathewson2007-05-07
| | | | | | | When we cannot find a micro-revision number, do not overwrite an already-present micro-revision.i. svn:r10134
* prepare directory_post_to_dirservers() to hear what sort ofRoger Dingledine2007-05-07
| | | | | | | | dir authority we'd like to upload to. at some point we should pick a config option to say that in, for bridges. svn:r10129
* add a 'bridge' flag for dirserver config entriesRoger Dingledine2007-05-07
| | | | svn:r10128
* Implement "getinfo status/circuit-established"Roger Dingledine2007-05-05
| | | | svn:r10120