aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
* Quench clang's complaints with -Wshorten-64-to-32 when time_t is not long.dana koch2014-05-11
| | | | | | On OpenBSD 5.4, time_t is a 32-bit integer. These instances contain implicit treatment of long and time_t as comparable types, so explicitly cast to time_t.
* Always finalize a zlib stream of server descriptors.Nick Mathewson2014-05-07
| | | | Possible fix for bug 11648.
* Fix some harmless/untriggerable memory leaks found by coverityNick Mathewson2014-04-07
|
* Merge remote-tracking branch 'public/bug4645'Nick Mathewson2014-04-01
|\ | | | | | | | | Conflicts: src/or/dirserv.c
| * Fixes for bug4645 fix.Nick Mathewson2014-02-03
| |
| * Using proper functions to create tor_addr_t.rl19872014-02-03
| |
| * Removing is_internal_IP() function. Resolves ticket 4645.rl19872014-02-03
| |
* | Be more lenient in our fix for bug 11149Roger Dingledine2014-03-23
| | | | | | | | | | | | There are still quite a few 0.2.3.2x relays running for x<5, and while I agree they should upgrade, I don't think cutting them out of the network is a net win on either side.
* | Merge remote-tracking branch 'karsten/task-11070'Nick Mathewson2014-03-23
|\ \
| * | Take out remaining V1 directory code.Karsten Loesing2014-03-18
| | |
* | | Stop accepting 0.2.2 relay uploads for the consensus.Nick Mathewson2014-03-06
|/ / | | | | | | Resolves ticket 11149.
* | Merge remote-tracking branch 'arma/ticket5528'Nick Mathewson2014-03-05
|\ \ | | | | | | | | | | | | | | | Conflicts: src/or/router.c src/test/test_dir.c
| * | use router->addr for log messages and controller eventsRoger Dingledine2013-02-09
| | | | | | | | | | | | (rather than router->address)
| * | Stop checking if ri->address is an IPRoger Dingledine2013-02-09
| | | | | | | | | | | | | | | | | | | | | since router_parse_entry_from_string() already checks whether !tor_inet_aton(router->address, &in) (And no need to print address, since router_describe does that.)
* | | Remove a bunch of functions that were never called.Nick Mathewson2014-02-15
| |/ |/|
* | More fixes to rip out all of the v2 directory code.Karsten Loesing2014-02-03
| | | | | | | | (This was a squash commit, but I forgot to squash it. Sorry! --Nick)
* | Rip out all of the v2 directory code.Nick Mathewson2014-01-29
| | | | | | | | | | | | The remaining vestige is that we continue to publish the V2dir flag, and that, for the controller, we continue to emit v2 directory formats when requested.
* | A Bridge Authority should compute flag thresholdsMatthew Finkel2013-10-21
| | | | | | | | | | | | | | | | As a bridge authority, before we create our networkstatus document, we should compute the thresholds needed for the various status flags assigned to each bridge based on the status of all other bridges. We then add these thresholds to the networkstatus document for easy access. Fixes for #1117 and #9859.
* | Add TestingDirAuthVoteGuard option for specifying relays to vote Guard on.Linus Nordberg2013-10-07
| | | | | | | | Addresses ticket 9206.
* | Completely refactor how FILENAME_PRIVATE worksNick Mathewson2013-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We previously used FILENAME_PRIVATE identifiers mostly for identifiers exposed only to the unit tests... but also for identifiers exposed to the benchmarker, and sometimes for identifiers exposed to a similar module, and occasionally for no really good reason at all. Now, we use FILENAME_PRIVATE identifiers for identifiers shared by Tor and the unit tests. They should be defined static when we aren't building the unit test, and globally visible otherwise. (The STATIC macro will keep us honest here.) For identifiers used only by the unit tests and never by Tor at all, on the other hand, we wrap them in #ifdef TOR_UNIT_TESTS. This is not the motivating use case for the split test/non-test build system; it's just a test example to see how it works, and to take a chance to clean up the code a little.
* | Merge remote-tracking branch 'linus/bug8532'Nick Mathewson2013-06-13
|\ \
| * | Add support for offsetting the voting interval in order to bootstrap faster.Linus Nordberg2013-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A new option TestingV3AuthVotingStartOffset is added which offsets the starting time of the voting interval. This is possible only when TestingTorNetwork is set. This patch makes run_scheduled_events() check for new consensus downloads every second when TestingTorNetwork, instead of every minute. This should be fine, see #8532 for reasoning. This patch also brings MIN_VOTE_SECONDS and MIN_DIST_SECONDS down from 20 to 2 seconds, unconditionally. This makes sanity checking of misconfiguration slightly less sane. Addresses #8532.
* | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-06-13
|\ \ \ | |/ / |/| |
| * | Make all consumers of microdesc_t.body tolerate NULLNick Mathewson2013-06-12
| | | | | | | | | | | | This is another fix to try to mitigate recurrences of 8031/8822.
* | | Merge branch 'maint-0.2.4' into masterAndrea Shepard2013-05-07
|\| |
| * | Use a clearer idiom for node identity in router_counts_toward_thresholdsNick Mathewson2013-05-05
| | |
| * | Fix 8833: crash bug from using NULL node->ri in dirserv.cNick Mathewson2013-05-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | It appears that moria1 crashed because of one instance of this (the one in router_counts_toward_thresholds). The other instance I fixed won't actually have broken anything, but I think it's more clear this way. Fixes bug 8833; bugfix on 0.2.4.12-alpha.
* | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-04-18
|\| |
| * | Add a boolean to flag-thresholds for "we have enough measured bandwidth"Nick Mathewson2013-04-18
| | | | | | | | | | | | Implements #8711.
* | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-04-18
|\| | | | | | | | | | | | | | Conflicts: src/common/crypto.c
| * | Merge branch 'less_charbuf_rebased' into maint-0.2.4Nick Mathewson2013-04-18
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/dirserv.c src/or/dirserv.h src/test/test_dir.c
| | * | Add a quick-and-dirty-test for generate_v2_networkstatus.Nick Mathewson2013-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It sure is a good thing we can run each test in its own process, or else the amount of setup I needed to do to make this thing work would have broken all the other tests. Test mocking would have made this easier to write too.
| | * | Refactor dirobj signature generationNick Mathewson2013-04-18
| | | | | | | | | | | | | | | | | | | | | | | | Now we can compute the hash and signature of a dirobj before concatenating the smartlist, and we don't need to play silly games with sigbuf and realloc any more.
| | * | Refactor v2 networkstatus generation to avoid buffer-styleNick Mathewson2013-04-18
| | | |
| | * | Refactor routerstatus_format_entry to avoid character-buffersNick Mathewson2013-04-18
| | | |
* | | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-04-14
|\| | | | | | | | | | | | | | | | | | | Conflicts: src/or/dirserv.c
| * | | Remove a now-empty if body; invert the sense of its conditionNick Mathewson2013-04-14
| | | |
| * | | Remvoe total_bandwidth and total_exit_bandwidth as unused.Nick Mathewson2013-04-14
| | | |
| * | | Rename all fields which measure bw in kb to end with _kbNick Mathewson2013-04-14
| | | |
| * | | Fix some KB/B confusion in flag threshold minima.Nick Mathewson2013-04-14
| | | |
| * | | Use credible_bandwidth uniformly in setting/using fast_bandwidthNick Mathewson2013-04-11
| | | | | | | | | | | | | | | | | | | | We were using credible_bandwidth to build the fast_bandwidth threshold, but comparing it to bandwidth_for_router.
| * | | Use correct units for dirserv_get_{credible_bandwidth,bandwidth_for_router}Nick Mathewson2013-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We were mixing bandwidth file entries (which are in kilobytes) with router_get_advertised_bw() entries, which were in bytes. Also, use router_get_advertised_bandwidth_capped() for credible_bandwidth.
* | | | fix trivial typoRoger Dingledine2013-04-12
|/ / /
* | | Set default minimum bandwidth for exit flag to zero for TestingTorNetworkAndrea Shepard2013-03-20
| | |
* | | Let testing networks override ABSOLUTE_MIN_VALUE_FOR_FAST_FLAGNick Mathewson2013-03-20
| | | | | | | | | | | | | | | This adds a new option to fix bug 8508 which broke chutney networks. The bug was introduced by 317d16de.
* | | Merge remote-tracking branch 'public/bug6164' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \
| * | | Clear up a comment about when an assertion could fireNick Mathewson2013-02-19
| |/ / | | | | | | | | | Resolves ticket 6164
* | | Improve comment for routers_with_measured_bw static var in dirserv.cAndrea Shepard2013-03-18
| | |
* | | Improve comment on router_counts_toward_thresholds()Andrea Shepard2013-03-18
| | |
* | | Add dirserv_has_measured_bw() predicate wrapper for ↵Andrea Shepard2013-03-18
| | | | | | | | | | | | dirserv_query_measured_bw_cache()