aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | Fix 64-bit printf issues in consensus-bw-weights5-merge.Nick Mathewson2010-02-25
| | | | | | | | | | | | | | | | | | | | | | | | For my 64-bit Linux system running with GCC 4.4.3-fc12-whatever, you can't do 'printf("%lld", (int64_t)x);' Instead you need to tell the compiler 'printf("%lld", (long long int)x);' or else it doesn't believe the types match. This is why we added U64_PRINTF_ARG; it looks like we needed an I64_PRINTF_ARG too.
* | | Merge remote branch 'mikeperry/consensus-bw-weights5-merge'Nick Mathewson2010-02-25
|\ \ \ | |_|/ |/| | | | | | | | Conflicts: ChangeLog
| * | Check snprintf return values in format_networkstatus_vote.Mike Perry2010-02-25
| | | | | | | | | | | | | | | Maybe this is what parakeep was complaining about? Really wish he would stick around more. Playing these guessing games is not fun :(
| * | Cast our weights down to ints from int64.Mike Perry2010-02-25
| | | | | | | | | | | | | | | They are capped to be between 0 and weight_scale (10000) by the code just before the snprintf.
| * | Make unit tests work.Mike Perry2010-02-24
| | | | | | | | | | | | | | | Still not sure why they generate an empty consensus document.. Too much frobbing going on there.
| * | Add consensus method #defines.Mike Perry2010-02-22
| | |
| * | Remove misc unnecessary newlines found by new check.Mike Perry2010-02-22
| | |
| * | Always weight routers by bandwidth.Mike Perry2010-02-22
| | | | | | | | | | | | | | | Also always predict that we need a high capacity circuit or internal circuit.
| * | Clearly mark directory footer so we parse the new weight line.Mike Perry2010-02-22
| | |
| * | Implement bw weighting selection algorithm.Mike Perry2010-02-22
| | |
| * | Add parsing+verification for bw weight values.Mike Perry2010-02-22
| | |
| * | Perform calculation of consensus bandwidth weights.Mike Perry2010-02-22
| | | | | | | | | | | | | | | Also add bwweightscale consensus param. Use it as our fixed-point calculation width.
| * | Add %lld compat defines.Mike Perry2010-02-22
| | |
* | | Restrict PerConnBWRate|Burst to INT32_MAX, update manpageSebastian Hahn2010-02-25
| | | | | | | | | | | | | | | | | | | | | | | | All other bandwidthrate settings are restricted to INT32_MAX, but this check was forgotten for PerConnBWRate and PerConnBWBurst. Also update the manpage to reflect the fact that specifying a bandwidth in terabytes does not make sense, because that value will be too large.
* | | Proper NULL checking for hsdesc publicationSebastian Hahn2010-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a dereference-then-NULL-check sequence. This bug wasn't triggered in the wild, but we should fix it anyways in case it ever happens. Also make sure users get a note about this being a bug when they see it in their log. Thanks to ekir for discovering and reporting this bug.
* | | Fix another coverity-spotted memleakSebastian Hahn2010-02-23
| | |
* | | bump to 0.2.2.9-alpha-devRoger Dingledine2010-02-22
|/ /
* | Merge remote branch 'sebastian/coverity'Nick Mathewson2010-02-22
|\ \
| * | Break early on unknown extendcircuit purposeSebastian Hahn2010-02-22
| | | | | | | | | | | | | | | Don't continue handling EXTENDCIRCUIT messages when we get an unknown purpose.
| * | Fix a memory leak, found by coveritySebastian Hahn2010-02-22
| | |
| * | Remove some redundand code in control.cSebastian Hahn2010-02-22
| | | | | | | | | | | | Found by coverity
* | | Merge remote branch 'sebastian/bug1254'Nick Mathewson2010-02-22
|\ \ \
| * | | Zero a cipher completely before freeing itSebastian Hahn2010-02-22
| |/ / | | | | | | | | | | | | | | | We used to only zero the first ptrsize bytes of the cipher. Since cipher is large enough, we didn't zero too many bytes. Discovered and fixed by ekir. Fixes bug 1254.
* | | Make expand_filename into a tor_strdup() alias on windows.Nick Mathewson2010-02-22
| | | | | | | | | | | | | | | | | | | | | | | | On Windows, we don't have a notion of ~ meaning "our homedir", so we were deliberately using an #ifdef to avoid calling expand_filename() in multiple places. This is silly: The right place to turn a function into a no-op on a single platform is in the function itself, not in every single call-site.
* | | Remove some redundant code in options_save_current()Sebastian Hahn2010-02-22
| | | | | | | | | | | | | | | get_torrc_fname() does the same thing we did in this code, so let's replace it.
* | | Expand homedirs in paths passed to tor-checkkeySebastian Hahn2010-02-22
|/ / | | | | | | | | This is so that coverity stops complaining about using a user-supplied string with the open() syscall. Let's see if it works.
* | network-status-version must come first in a vote/consensusSebastian Hahn2010-02-22
| | | | | | | | | | | | | | Spec conformance issue: The code didn't force the network-status-version token to be the first token in a v3 vote or consensus. Problem discovered by Parakeep.
* | prepare for 0.2.2.9-alphaRoger Dingledine2010-02-22
| |
* | fix typo and garbage grammarRoger Dingledine2010-02-21
| |
* | Merge remote branch 'public/cbt-status'Nick Mathewson2010-02-20
|\ \ | | | | | | | | | | | | Conflicts: ChangeLog
| * | Future-proof the control protocol by ignoring unrecognized keyword argsNick Mathewson2010-02-18
| | |
| * | Make more arguments in control.c properly case-insensitive.Nick Mathewson2010-02-18
| | |
| * | Describe the recent timeouts reallocation behavior.Mike Perry2010-02-18
| | |
| * | Move CBT params into consensus.Mike Perry2010-02-18
| | |
| * | Add an event for a case where we drop guards.Mike Perry2010-02-18
| | | | | | | | | | | | Also add a comment about an odd CBT timeout edgecase.
| * | Allow "EXTENDCIRCUIT 0" to omit a path.Mike Perry2010-02-18
| | |
| * | Add BUILDTIMEOUT_SET event for CBT stress testing.Mike Perry2010-02-18
| | |
* | | Merge remote branch 'sebastian/bug1143'Nick Mathewson2010-02-19
|\ \ \ | |/ / |/| |
| * | Make the DNSPort option work with libevent 2.xSebastian Hahn2010-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | We need to use evdns_add_server_port_with_base() when configuring our DNS listener, because libevent segfaults otherwise. Add a macro in compat_libevent.h to pick the correct implementation depending on the libevent version. Fixes bug 1143, found by SwissTorExit
* | | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-02-18
|\ \ \ | |/ / |/| / | |/ | | | | | | | | Conflicts: ChangeLog configure.in contrib/tor-mingw.nsi.in src/win32/orconfig.h
| * Bump version to 0.2.1.23-devNick Mathewson2010-02-18
| |
| * Fix compileSebastian Hahn2010-02-18
| |
| * Even more conservative option-setting for SSL renegotiation.Nick Mathewson2010-02-17
| | | | | | | | | | | | This time, set the SSL3_FLAGS_ALLOW_UNSAFE_RENEGOTIATION flag on every version before OpenSSL 0.9.8l. I can confirm that the option value (0x0010) wasn't reused until OpenSSL 1.0.0beta3.
| * new dannenberg address; make moria2's demise official.Roger Dingledine2010-02-12
| |
| * prepare for 0.2.1.23Roger Dingledine2010-02-12
| |
* | Build correctly with Libevent 2.0.4-alpha and laterNick Mathewson2010-02-15
| |
* | Remove the --enable-iphone option as needless.Nick Mathewson2010-02-12
| | | | | | | | | | On or-talk, Marco Bonetti reports that recent iPhone SDKs build Tor fine without it.
* | Add Windows version detection for Vista and 7Sebastian Hahn2010-02-10
| | | | | | | | | | | | Vista is Windows 6.0, and 7 is Windows 6.1. Fixes bug 1097. Also fix a coding style violation.
* | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-02-09
|\|
| * Don't use gethostbyname() in resolve_my_address()Sebastian Hahn2010-02-08
| | | | | | | | | | | | | | Tor has tor_lookup_hostname(), which prefers ipv4 addresses automatically. Bug 1244 occured because gethostbyname() returned an ipv6 address, which Tor cannot handle currently. Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.