| Commit message (Collapse) | Author | Age |
|
|
|
| |
svn:r16527
|
|
|
|
|
|
|
| |
Make tor_addr_from_sockaddr also give away the port in a useful format
svn:r16458
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
More test coverage for tor_addr_t; fix a couple of bugs.
svn:r16234
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn:r15237
|
|
|
|
| |
svn:r14949
|
|
|
|
|
|
| |
--enable-geoip-stats passed to configure.
svn:r14802
|
|
|
|
|
|
|
| |
Rename tor_addr_t manipulation functions for a consistent style.
svn:r14639
|
|
|
|
|
|
|
| |
Add unit tests for last patch; make it more testable; fix a bug or two.
svn:r14586
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Make unit tests pass again after Link protocol list change.
svn:r14254
|
|
|
|
|
|
|
| |
Fix whitespace
svn:r14197
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
More unit tests to improve coverage.
svn:r14185
|
|
|
|
|
|
|
| |
Add some unit tests, particularly for AES counter mode.
svn:r14180
|
|
|
|
| |
svn:r14151
|
|
|
|
|
|
|
| |
Fix tests and routerdesc behavior on trunk.
svn:r14084
|
|
|
|
|
|
|
| |
Fix policy-related crash bug found by lodger.
svn:r14077
|
|
|
|
|
|
|
| |
Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone.
svn:r14016
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
in an assert error because of invalid log levels. Should a failure here fail our test suite?
svn:r14003
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Write some unit tests for a few functions and cases that needed them.
svn:r13751
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Patch from Sebastian Hahn: remove obsolete timeval manipulation functions.
svn:r13653
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Unit tests for buf_find_string_offset()
svn:r13632
|
|
|
|
|
|
|
| |
fix bufs in buf_pos_t implementation.
svn:r13623
|
|
|
|
|
|
|
| |
Replace the hefty tor_strpartition with a simple function to replace its only (trivial) use.
svn:r13532
|
|
|
|
|
|
|
| |
Add initial unit tests for test_addr_compare_masked
svn:r13531
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn:r13453
|
|
|
|
| |
svn:r13450
|
|
|
|
| |
svn:r13440
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
downgrade xxxs in test.c
svn:r13426
|
|
|
|
|
|
|
| |
Clean up IPv6-testing code in test.c; resolve a bunch of XXX020s.
svn:r13425
|
|
|
|
| |
svn:r13412
|
|
|
|
|
|
|
| |
As planned, rename networkstatus_vote_t to networkstatus_t, now that v3 networkstatuses are working and standard and v2 networkstatuses are obsolete.
svn:r13383
|
|
|
|
| |
svn:r13100
|
|
|
|
|
|
|
| |
Allow config values in quotes to contain special characters, with full C escape syntax. With tests. Addresses bug 557.
svn:r13021
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|