- 17 Jun, 2007 4 commits
-
-
Nick Mathewson authored
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere. svn:r10645
-
Nick Mathewson authored
Build with fewer compiler warnings on Sun. (This and previous Sun patches are thanks to the tremendously handy services of unix-center.net.) svn:r10644
-
Nick Mathewson authored
document some functions svn:r10637
-
Nick Mathewson authored
Adjust networkstatus_compute_consensus to take an argument saying how many voters there _should_ be. svn:r10634
-
- 13 Jun, 2007 7 commits
-
-
Nick Mathewson authored
Test the remainder of the contents of the consensus; fix a bug in geneating addresses on routerstatuses. svn:r10597
-
Nick Mathewson authored
Test all of consensus contents, except for routerstatus_list contents. And signatures. svn:r10593
-
Nick Mathewson authored
Hm. Tor should never need private authority identity keys; thus, I should not actually load the authority identity keys for testing. svn:r10591
-
Nick Mathewson authored
Set vote_digest field prproperly in networkstatus_vote_t, so that it gets conveyed to the consensus correctly. svn:r10590
-
Nick Mathewson authored
Unit tests and debugging for generating and parsing consensus networkstatus documents. Still need to test actual contents. svn:r10589
-
Nick Mathewson authored
More vote unit tests: check that we are parsing routerstatuses correctly. svn:r10588
-
Nick Mathewson authored
Unit tests and debugging for vote generation and parsing code. svn:r10587
-
- 10 Jun, 2007 1 commit
-
-
Nick Mathewson authored
Fix bug in 10533: put "opt v" line at the end of a routerstatus section; overwriting is bad. svn:r10549
-
- 06 Jun, 2007 1 commit
-
-
Nick Mathewson authored
Apply my sekrit "unused macro detector" script to hunt down some macros we didnt use. svn:r10510
-
- 01 Jun, 2007 1 commit
-
-
Nick Mathewson authored
Oops. Different inet_ntop implementations seem to differ on whether, in an IPv6 address with a single "0" word, that word should be written as 0, or omitted. Fix the unit tests to account for that. svn:r10432
-
- 31 May, 2007 2 commits
-
-
Nick Mathewson authored
Cleanup whitespace. svn:r10425
-
Nick Mathewson authored
Unit tests [and debugging] for tor_inet_ntop() and tor_inet_pton() svn:r10420
-
- 24 May, 2007 1 commit
-
-
Nick Mathewson authored
Add math functions to round values to the nearest power of 2. Make mempools more careful about making sure that the size of their chunks is a little less than a power of 2, not a little more. svn:r10304
-
- 20 May, 2007 1 commit
-
-
Nick Mathewson authored
Provide actual reasons when dropping an uploaded extrainfo for incompatibility; also, clean whitespace. svn:r10230
-
- 19 May, 2007 1 commit
-
-
Nick Mathewson authored
Fix compilation with -O0; add unit tests for swap and shuffle. svn:r10223
-
- 15 May, 2007 1 commit
-
-
Nick Mathewson authored
Enable (and cope with) more GCC 4.2 warnings. svn:r10196
-
- 30 Apr, 2007 1 commit
-
-
Nick Mathewson authored
Add an extra lock to try to get unit tessts passing reliably again. svn:r10062
-
- 21 Apr, 2007 1 commit
-
-
Nick Mathewson authored
Initial version of code to stop using socket pairs for linked connections. Superficially, it seems to work, but it probably needs a lot more testing and attention. svn:r9995
-
- 17 Apr, 2007 1 commit
-
-
Nick Mathewson authored
Twiddle tor_version_as_new_as() so we can check for particular svn revisions. With unit tests, for added freshness. svn:r9977
-
- 16 Apr, 2007 3 commits
-
-
Nick Mathewson authored
from an SVN repository, use the current svn revision in the platform string and in the output of --version. svn:r9976
-
Nick Mathewson authored
svn:r9972
-
Nick Mathewson authored
Code to generate extrainfo whenever routerdesc is regenerated; code to check extrainfo against routerdesc. svn:r9970
-
- 11 Apr, 2007 4 commits
-
-
Nick Mathewson authored
Add code to shrink the cell memory pool by discarding empty chunks that have been empty for the last 60 seconds. Also, instead of having test.c duplicate declarations for exposed functions, put them inside #ifdef foo_PRIVATE blocks in the headers. This prevents bugs where test.c gets out of sync. svn:r9944
-
Nick Mathewson authored
Fix documentation and usage of 2nd argument to mp_pool_new. svn:r9942
-
Nick Mathewson authored
Document memory pool implementation, and tweak it even mor. See? Programming is fun. svn:r9940
-
Nick Mathewson authored
Unit tests and debugging for memory pool implementation. svn:r9938
-
- 15 Mar, 2007 1 commit
-
-
Nick Mathewson authored
Clarify section of dir-spec.txt that explains how "v" resolution happens. svn:r9829
-
- 06 Mar, 2007 2 commits
-
-
Nick Mathewson authored
Try to make unit tests happier on 64-bit platforms. svn:r9752
-
Nick Mathewson authored
More unit tests: gcov is fun. svn:r9748
-
- 05 Mar, 2007 1 commit
-
-
Nick Mathewson authored
Remove dnsworkers and related code. there goes another 550 lines of code. svn:r9736
-
- 28 Feb, 2007 2 commits
-
-
Nick Mathewson authored
add another u64-related unit test. svn:r9681
-
Nick Mathewson authored
Add unit tests for tor_parse_uint64 svn:r9678
-
- 12 Feb, 2007 1 commit
-
-
Nick Mathewson authored
Update copyright dates. svn:r9570
-
- 08 Feb, 2007 1 commit
-
-
Nick Mathewson authored
Oops; the change in tor_version_is_obsolete broke a unit test. svn:r9529
-
- 05 Feb, 2007 1 commit
-
-
Nick Mathewson authored
Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483
-
- 15 Jan, 2007 1 commit
-
-
Nick Mathewson authored
Apparently, the OpenBSD linker thinks it knows C better than I do, and gets to call me names for having strcat and strcpy and sprintf in my code--whether I use them safely or not. All right, OpenBSD. You win... this round. svn:r9360
-