aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
Commit message (Collapse)AuthorAge
* A few testcases for policy summariesPeter Palfrader2008-08-13
| | | | svn:r16527
* r17666@tombo: nickm | 2008-08-07 15:12:30 -0400Nick Mathewson2008-08-07
| | | | | | | Make tor_addr_from_sockaddr also give away the port in a useful format svn:r16458
* r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson2008-08-05
| | | | | | | Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435
* r17426@tombo: nickm | 2008-07-28 20:34:03 -0400Nick Mathewson2008-07-29
| | | | | | | More test coverage for tor_addr_t; fix a couple of bugs. svn:r16234
* r17391@pc-10-8-1-079: nickm | 2008-07-25 17:11:17 +0200Nick Mathewson2008-07-25
| | | | | | | Tor_addr_compare did a semantic comparison, such that ::1.2.3.4 and 1.2.3.4 were "equal". we sometimes need an exact comparison. Add a feature to do that. svn:r16210
* r17346@aud-055: nickm | 2008-07-24 15:37:19 +0200Nick Mathewson2008-07-24
| | | | | | | Make generic address manipulation functions work better. Switch address policy code to use tor_addr_t, so it can handle IPv6. That is a good place to start. svn:r16178
* r17337@aud-055: nickm | 2008-07-24 10:17:43 +0200Nick Mathewson2008-07-24
| | | | | | | Refactor the is_vote field of networkstatus_t to add a third possibility ("opinion") in addition to vote and opinion. First part of implementing proposal 147. svn:r16166
* Stop trying to detect versions of Tor on the server-side older than ↵Nick Mathewson2008-07-16
| | | | | | 0.1.1.15-rc; they simply do not work any more. Also add comment about how or_is_obsolete is a terrible field name. svn:r15982
* Make unit tests pass againPeter Palfrader2008-06-13
| | | | svn:r15237
* Make unit tests pass again: new geoip behavior had freaked out.Nick Mathewson2008-06-04
| | | | svn:r14949
* New code to implement proposal for local geoip stats. Only enabled with ↵Nick Mathewson2008-05-29
| | | | | | --enable-geoip-stats passed to configure. svn:r14802
* r19795@catbus: nickm | 2008-05-16 14:54:24 -0400Nick Mathewson2008-05-16
| | | | | | | Rename tor_addr_t manipulation functions for a consistent style. svn:r14639
* r19694@catbus: nickm | 2008-05-12 00:21:37 -0400Nick Mathewson2008-05-12
| | | | | | | Add unit tests for last patch; make it more testable; fix a bug or two. svn:r14586
* r15304@tombo: nickm | 2008-04-23 16:31:40 -0400Nick Mathewson2008-04-23
| | | | | | | Forward-port: I had apparently broken OSX and Freebsd by not initializing threading before we initialize the logging system. This patch should do so, and fix bug 671. svn:r14430
* r19233@catbus: nickm | 2008-04-08 13:06:34 -0400Nick Mathewson2008-04-08
| | | | | | | When we remove old routers, use Bloom filters rather than a digestmap-based set in order to tell which ones we absolutely need to keep. This will save us roughly a kazillion little short-lived allocations for hash table entries. svn:r14318
* r19229@catbus: nickm | 2008-04-07 12:28:22 -0400Nick Mathewson2008-04-07
| | | | | | | Add a new SMARTLIST_FOREACH_JOIN macro to iterate through two sorted lists in lockstep. This happens at least 3 times in the code so far, and is likely to happen more in the future. Previous attempts to do so proved touchy, tricky, and error-prone: now, we only need to get it right in one place. svn:r14309
* r19152@catbus: nickm | 2008-03-30 23:20:11 -0400Nick Mathewson2008-03-31
| | | | | | | Make unit tests pass again after Link protocol list change. svn:r14254
* r19062@catbus: nickm | 2008-03-26 12:56:25 -0400Nick Mathewson2008-03-26
| | | | | | | Fix whitespace svn:r14197
* r19049@catbus: nickm | 2008-03-26 12:33:25 -0400Nick Mathewson2008-03-26
| | | | | | | Add new stacklike, free-all-at-once memory allocation strategy. Use it when parsing directory information. This helps parsing speed, and may well help fragmentation some too. hidden-service-related stuff still uses the old tokenizing strategies. svn:r14194
* r19041@catbus: nickm | 2008-03-25 16:20:42 -0400Nick Mathewson2008-03-25
| | | | | | | More unit tests to improve coverage. svn:r14185
* r19039@catbus: nickm | 2008-03-25 12:15:58 -0400Nick Mathewson2008-03-25
| | | | | | | Add some unit tests, particularly for AES counter mode. svn:r14180
* make it build, tooRoger Dingledine2008-03-21
| | | | svn:r14151
* r18900@catbus: nickm | 2008-03-17 18:32:25 -0400Nick Mathewson2008-03-17
| | | | | | | Fix tests and routerdesc behavior on trunk. svn:r14084
* r18880@catbus: nickm | 2008-03-17 12:51:24 -0400Nick Mathewson2008-03-17
| | | | | | | Fix policy-related crash bug found by lodger. svn:r14077
* r18804@catbus: nickm | 2008-03-13 18:18:31 -0400Nick Mathewson2008-03-13
| | | | | | | Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone. svn:r14016
* downgrade get_interface_address6 logging severity to LOG_DEBUG.Peter Palfrader2008-03-13
| | | | | | | | | get_interface_address6() fails regardless of the allocator used, wever logging to the original severity of 0 causes an assert error only with the bsd allocator. weird. svn:r14005
* Use proper log levels with get_interface_address6() calls so we do not die ↵Peter Palfrader2008-03-13
| | | | | | in an assert error because of invalid log levels. Should a failure here fail our test suite? svn:r14003
* r18630@catbus: nickm | 2008-03-05 17:31:33 -0500Nick Mathewson2008-03-05
| | | | | | | Implement domain-selection for logging. Source is documented; needs documentation in manpage (maybe). For now, see doxygen comment on parse_log_severity_config in log.c svn:r13875
* r14516@tombo: nickm | 2008-02-27 03:10:26 -0500Nick Mathewson2008-02-27
| | | | | | | Write some unit tests for a few functions and cases that needed them. svn:r13751
* r14374@tombo: nickm | 2008-02-21 16:57:39 -0500Nick Mathewson2008-02-21
| | | | | | | Fix all remaining shorten-64-to-32 errors in src/common. Some were genuine problems. Many were compatibility errors with libraries (openssl, zlib) that like predate size_t. Partial backport candidate. svn:r13665
* r18336@catbus: nickm | 2008-02-21 09:33:15 -0500Nick Mathewson2008-02-21
| | | | | | | Patch from Sebastian Hahn: remove obsolete timeval manipulation functions. svn:r13653
* r18286@catbus: nickm | 2008-02-20 21:10:33 -0500Nick Mathewson2008-02-21
| | | | | | | Fix a bug that kept buf_find_string_offset from finding a string at the very end of the buffer. Add a unit test for this. Also, do not save a pointer to a chunk that might get reallocated by buf_pullup(). svn:r13635
* r18278@catbus: nickm | 2008-02-20 18:29:07 -0500Nick Mathewson2008-02-20
| | | | | | | Unit tests for buf_find_string_offset() svn:r13632
* r18264@catbus: nickm | 2008-02-20 12:48:21 -0500Nick Mathewson2008-02-20
| | | | | | | fix bufs in buf_pos_t implementation. svn:r13623
* r14185@tombo: nickm | 2008-02-15 18:05:54 -0500Nick Mathewson2008-02-15
| | | | | | | Replace the hefty tor_strpartition with a simple function to replace its only (trivial) use. svn:r13532
* r14183@tombo: nickm | 2008-02-15 17:37:53 -0500Nick Mathewson2008-02-15
| | | | | | | Add initial unit tests for test_addr_compare_masked svn:r13531
* r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson2008-02-12
| | | | | | | Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484
* patch from tup to fix bug 605Roger Dingledine2008-02-09
| | | | svn:r13453
* "fix" the unit tests on openbsd/netbsdRoger Dingledine2008-02-09
| | | | svn:r13450
* doxygen and other cleanupsRoger Dingledine2008-02-09
| | | | svn:r13440
* r14061@tombo: nickm | 2008-02-08 14:30:42 -0500Nick Mathewson2008-02-08
| | | | | | | Add a couple of (currently disabled) strategies for trying to avoid using too much ram in memory pools: prefer putting new cells in almost-full chunks, and be willing to free the last empty chunk if we have not needed it for a while. Also add better output to mp_pool_log_status to track how many mallocs a given memory pool strategy is saving us, so we can tune the mempool parameters. svn:r13428
* r14059@tombo: nickm | 2008-02-08 13:36:34 -0500Nick Mathewson2008-02-08
| | | | | | | downgrade xxxs in test.c svn:r13426
* r17968@catbus: nickm | 2008-02-07 14:11:02 -0500Nick Mathewson2008-02-08
| | | | | | | Clean up IPv6-testing code in test.c; resolve a bunch of XXX020s. svn:r13425
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* r17909@catbus: nickm | 2008-02-05 14:48:22 -0500Nick Mathewson2008-02-05
| | | | | | | As planned, rename networkstatus_vote_t to networkstatus_t, now that v3 networkstatuses are working and standard and v2 networkstatuses are obsolete. svn:r13383
* fix unit tests after r13092Roger Dingledine2008-01-10
| | | | svn:r13100
* r15787@tombo: nickm | 2008-01-02 01:59:07 -0500Nick Mathewson2008-01-02
| | | | | | | Allow config values in quotes to contain special characters, with full C escape syntax. With tests. Addresses bug 557. svn:r13021
* r15786@tombo: nickm | 2008-01-02 01:11:51 -0500Nick Mathewson2008-01-02
| | | | | | | Push the strdups used for parsing configuration lines into parse_line_from_string(). This will make it easier to parse more complex value formats, which in turn will help fix bug 557 svn:r13020
* r15784@tombo: nickm | 2008-01-02 00:38:06 -0500Nick Mathewson2008-01-02
| | | | | | | Fix bug 575: protect the list of logs with a mutex. I couldn't find any appreciable change in logging performance on osx, but ymmv. You can undef USE_LOG_MUTEX to see if stuff gets faster for you. svn:r13019
* r15779@tombo: nickm | 2008-01-01 23:43:24 -0500Nick Mathewson2008-01-02
| | | | | | | Use reference-counting to avoid allocating a zillion little addr_policy_t objects. (This is an old patch that had been sitting on my hard drive for a while.) svn:r13017