aboutsummaryrefslogtreecommitdiff
path: root/src/or
Commit message (Collapse)AuthorAge
* Merge branch 'win32_winnt'Nick Mathewson2012-05-16
|\
| * Bump _WIN32_WINNT to 0x0501 throughout the codeNick Mathewson2012-05-14
| | | | | | | | | | | | | | | | | | This tells the windows headers to give us definitions that didn't exist before XP -- like the ones that we need for IPv6 support. See bug #5861. We didn't run into this issue with mingw, since mingw doesn't respect _WIN32_WINNT as well as it should for some of its definitions.
| * Remove all instances of WIN32_WINNT (without leading _)Nick Mathewson2012-05-14
| | | | | | | | | | We started adding it in 59e2c77824840f back in 2004, 8 years and 3 days ago. It's time to deprogram ourselves from this cargo cult.
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2012-05-15
|\ \
| * \ Merge branch 'bug5796_022_squashed' into maint-0.2.2Nick Mathewson2012-05-15
| |\ \
| | * | Fix a crash bug on SETCIRCUITPURPOSE.Nick Mathewson2012-05-15
| | | |
* | | | Merge remote-tracking branch 'linus/task-5891'Nick Mathewson2012-05-15
|\ \ \ \ | |_|_|/ |/| | |
| * | | Assert that rep_hist_format_desc_stats() returns !NULL.Linus Nordberg2012-05-15
| | | | | | | | | | | | | | | | | | | | The guard against this is the test for start_of_served_descs_stats_interval != 0 done earlier.
| * | | Fix desc stats on bridge authorities that didn't serve anything.Karsten Loesing2012-05-15
| | | |
* | | | MSVC build issue: it can't tell that tor_assert(0) aborts.Nick Mathewson2012-05-14
| | | |
* | | | MSVC build issue: make 'const' in declaration match 'const' in definitionNick Mathewson2012-05-14
| | | | | | | | | | | | | | | | | | | | | | | | MSVC warns if you declare a function as having a "int foo" argument and then implement it with a "const int foo" argument, even though the latter "const" is not a part of the function's interface.
* | | | MSVC build issue: we use INLINE as the one that will magically workNick Mathewson2012-05-14
| | | |
* | | | Be a good git person: store nmakefiles in correct text fmtNick Mathewson2012-05-14
| | | |
* | | | Do not publish the "git-XXX" tag in server descriptorsNick Mathewson2012-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, allow packagers to put a 'TOR_BUILD_TAG' field in the server descriptor to indicate a platform-specific value, if they need to. (According to weasel, this was his use for the git- tag previously.) This is part of 2988
* | | | Fix a couple of wide linesNick Mathewson2012-05-11
| | | |
* | | | Merge remote-tracking branch 'asn/bug4865_take2'Nick Mathewson2012-05-11
|\ \ \ \
| * | | | Fix issues found by nickm.George Kadianakis2012-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Document fmt_addr_impl() and friends. * Parenthesize macro arguments. * Rename get_first_listener_addrport_for_pt() to get_first_listener_addrport_string(). * Handle port_cfg_t with no_listen. * Handle failure of router_get_active_listener_port_by_type(). * Add an XXX to router_get_active_listener_port_by_type().
| * | | | Pass OR address to PT proxy, even with IPv6 or ORListenAddress.George Kadianakis2012-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce get_first_listener_addrport_for_pt() which returns a string containing the addrport of the first listener we could find. Use it to form the TOR_PT_ORPORT managed proxy protocol line.
| * | | | Introduce and use router_get_active_listener_port_by_type().George Kadianakis2012-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | router_get_active_listener_port_by_type() iterates all connections, trying to find a listener of a specific type, and returns its TCP port.
* | | | | Merge branch 'maint-0.2.2'Roger Dingledine2012-05-10
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | fix over-wide line from f661747370Roger Dingledine2012-05-10
| | | | |
* | | | | Fix O(n^2) performance when parsing a big pile of extrainfosNick Mathewson2012-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were doing an O(n) strlen in router_get_extrainfo_hash() for every one we tried to parse. Instead, have router_get_extrainfo_hash() take the length of the extrainfo as an argument, so that when it's called from extrainfo_parse_from_string(), it doesn't do a strlen() over the whole pile of extrainfos.
* | | | | Merge branch 'bug5786'Nick Mathewson2012-05-10
|\ \ \ \ \
| * | | | | Detect out-of-bounds bwweightscale values early in the voting processNick Mathewson2012-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the authorities agreed on a sufficiently bad bwweightscale value (<=0 or == INT32_MAX), the bandwidth algorithm could make the voters assert while computing the consensus. Fix for bug5786; bugfix on 0.2.2.17-alpha
| * | | | | Check more thoroughly for dups when parsing networkstatus parametersNick Mathewson2012-05-07
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | See changes file for details. Partial fix for bug 5786; fix on 0.2.2.2-alpha.
* | | | | Merge remote-tracking branch 'linus/bug5146'Nick Mathewson2012-05-10
|\ \ \ \ \
| * | | | | Ignore [::] when building descriptors.Linus Nordberg2012-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is how IPv6 says "0.0.0.0" and something we will have to translate into a globally reachable address before putting it in a descriptor. The fix is a short term solution until a real one is implemented. Closes #5146.
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2012-05-10
|\ \ \ \ \ \ | |_|/ / / / |/| | / / / | | |/ / / | |/| | |
| * | | | Add missing CRLFs to AUTHCHALLENGE failure repliesRavi Chandra Padmala2012-05-10
| | |_|/ | |/| | | | | | | | | | Fix #5760
* | | | Merge branch 'bug5645_take2'Nick Mathewson2012-05-07
|\ \ \ \
| * | | | Make a cast less const-violating; make a field size explicit.Nick Mathewson2012-05-07
| | | | |
| * | | | Reorder rend_mid_rendezvous() to do protocol violation checks on top.George Kadianakis2012-05-07
| | |/ / | |/| |
* | | | Using %d to printf an enum may not be by-the-standard okay.Nick Mathewson2012-05-07
| | | |
* | | | Fix an overwide lineNick Mathewson2012-05-07
| | | |
* | | | Fix comments: There is no such thing as a NUL pointerNick Mathewson2012-05-07
| | | |
* | | | Document some transports.c behaviors and assumptionsNick Mathewson2012-05-07
| | | |
* | | | Make transports.c logs a bit more helpful.George Kadianakis2012-05-03
|/ / /
* | | Add a missing ntohl to tell_controller_about_resolve_resultNick Mathewson2012-05-01
| | | | | | | | | | | | Fix for bug 5723; bugfix on 0.2.3.1-alpha (commit 22f723e4)
* | | Merge remote-tracking branch 'arma/bug5623'Nick Mathewson2012-04-24
|\ \ \
| * | | be willing to use nodes in excludeexitnodes as directory mirrorsRoger Dingledine2012-04-24
| | | | | | | | | | | | | | | | fixes bug 5623.
* | | | peel off some unnecessary parensRoger Dingledine2012-04-24
| | | |
* | | | Merge remote-tracking branch 'nickm/bug2497'Roger Dingledine2012-04-24
|\ \ \ \
| * | | | Twiddle ROUTER_{MAX_COSMETIC_TIME_DIFFERENCE,MAX_AGE_TO_PUBLISH}Nick Mathewson2012-03-30
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is ticket 2479. Roger's original explanation was: We have a series of bugs where relays publish a descriptor within 12 hours of their last descriptor, but the authorities drop it because it's not different "enough" from the last one and it's too close to the last one. The original goal of this idea was to a) reduce the number of new descriptors authorities accept (and thus have to store) and b) reduce the total number of descriptors that clients and mirrors fetch. It's a defense against bugs where relays publish a new descriptor every minute. Now that we're putting out one consensus per hour, we're doing better at the total damage that can be caused by 'b'. There are broader-scale design changes that would help here, and we've had a trac entry open for years about how relays should recognize that they're not in the consensus, or recognize when their publish failed, and republish sooner. In the mean time, I think we should change some of the parameters to make the problem less painful.
* | | | Merge remote-tracking branch 'public/bug4572'Nick Mathewson2012-04-24
|\ \ \ \
| * | | | Obsolete GiveGuardFlagTo_CVE_2011_2768_VulnerableRelaysNick Mathewson2012-04-11
| | | | | | | | | | | | | | | | | | | | Closes ticket 4572.
* | | | | Add a check_no_tls_errors() to read_to_buf_tlsArturo Filastò2012-04-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #4528 "read_to_buf_tls(): Inconsistency in code". This check was added back in 0.1.0.3-rc, but somehow we forgot to leave it in when we refactored read_to_buf_tls in 0.1.0.5-rc. (patch by Arturo; commit message and changes file by nickm)
* | | | | Merge branch 'bug4438-v2'Nick Mathewson2012-04-24
|\ \ \ \ \
| * | | | | Tweak the bug4438 fix a little: different check, better logNick Mathewson2012-04-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of checking for 'rejected' and calling everything else okay, let's check for 'outdated' and call everythign else a problem. This way we don't risk missing future errors so much. When logging a message that _looks_ like an error message at info, we should mention that it isn't really a problem.
| * | | | | Don't exit on dirauths for some config transitionsSebastian Hahn2011-11-08
| | | | | |
* | | | | | Merge remote-tracking branch 'public/bug5537'Nick Mathewson2012-04-24
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |