summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-23Move ipv6_preferred from routerinfo_t to node_t.Linus Nordberg
Move extend_info_from_router() from circuitbuild.c to router.c and make it static. Add get_configured_bridge_by_orports_digest() and have get_configured_bridge_by_routerinfo() and node_is_a_configured_bridge() use it. We now consider all OR ports of a bridge when looking for it. Move node_get_*_orport to nodelist.c. Fix a cut'n'paste error in header of nodelist.h. Add node_assert_ok(). Add router_get_all_orports(). It's duplicating code from node_get_all_orports(). Worth fixing at the cost of complicating the API slightly?
2012-08-22Remove #6480 fix from 0.2.2.38 changelog - it was not includedPeter Palfrader
(Forward-port from release-0.2.2 to master)
2012-08-21Merge branch 'bug6638'Nick Mathewson
2012-08-21Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-21Merge remote-tracking branch 'public/bug6404' into maint-0.2.3Nick Mathewson
2012-08-21Merge remote-tracking branch 'linus/bug6621'Nick Mathewson
2012-08-21Avoid spurious warnings in rend_service_introduceNick Mathewson
There was some code in the "err:" block that would always log a warning, reporting an "unknown error" if we hadn't set err_msg. But there were also plenty of "goto err" blocks that did their own logging, and never set err_msg at all. Now we should only log when we have an error message to log. This fixes bug 6638, from no released Tor version.
2012-08-17Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-17whitespace fixNick Mathewson
2012-08-17Merge remote-tracking branch 'public/bug5124'Nick Mathewson
2012-08-17Merge branch 'bug6468_squashed'Nick Mathewson
2012-08-17Remove needless flush-on-write code.Nick Mathewson
Long ago, before we had cell queues, it was necessary to maybe call connection_handle_write() from connectino_write_to_buf_impl() on OR connections, so that we wouldn't get into a loop of reading infinite amounts of data and queueing it all on an outbuf before bothering to write any data. If that doesn't sounds like what our code does now, you're right: right now, we won't stick more than OR_CONN_HIGHWATER bytes of cells on an outbuf, and we won't suck more than CELL_QUEUE_HIGHWATER_SIZE cells off any edge connection. So, there's no more call for that code. Removing this code will simplify our data flow, and that should be something we can all get behind.
2012-08-17Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-17Consider IPv6 OR ports when deciding whether a routerinfo change is cosmetic.Linus Nordberg
Closes #6423.
2012-08-17Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-17Merge branch 'bug6379' into maint-0.2.3Nick Mathewson
2012-08-17Fix more warnings from openbsd_mallocNick Mathewson
Apparently, (void)writev is not enough to suppress the "you are ignoring the return value!" warnings on Linux. Instead, remove the whole warning/error logic when compiling openbsd_malloc for Tor: we can't use it.
2012-08-17Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-17Merge remote-tracking branch 'public/bug6244_part_c' into maint-0.2.3Nick Mathewson
2012-08-17Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-17Merge remote-tracking branch 'public/bug6507' into maint-0.2.3Nick Mathewson
2012-08-17Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-17Whitespace and build fixes on 6475 patchNick Mathewson
2012-08-17Merge remote-tracking branch 'mikeperry/bug6475' into maint-0.2.3Nick Mathewson
2012-08-17Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-17Merge remote-tracking branch 'public/bug6514' into maint-0.2.3Nick Mathewson
2012-08-17Make authorities not set Running unless all advertised OR ports are reachable.Linus Nordberg
Resolves #6621.
2012-08-16Address Nick's comments from code review.Mike Perry
Also promote log messages to notice and rate-limit them.
2012-08-15Bug 6475: Explicitly track our path bias state.Mike Perry
This is done to avoid spurious warns. Additional log lines are also added to try to track down the codepaths where we are somehow overcounting success counts.
2012-08-15Fix warnings and 64-bit problems in openbsd-malloc codeNick Mathewson
The warning fixes are: - Only define issetugid if it's missing. - Explicitly ignore the return value of writev. - Explicitly cast the retval of readlink() to int. The 64-bit problems are related to just storing a size_t in an int. Not cool! Use a size_t instead. Fix for bug 6379. Bugfix on 0.2.0.20-rc, which introduced openbsd-malloc.
2012-08-15Fix wildcarded address mappings from the control portNick Mathewson
Apparently, we weren't actually detecting wildcardedness when parsing them: whoops! bug 6244. Bugfix on 0.2.3.9-alpha
2012-08-15Raise the part of torrc mapaddress handling that knows wildcardsNick Mathewson
This patch extracts the inner part of config_register_addressmaps -- the part that knows about detecting wildcard addresses addresses -- and makes it into a new function. The new function is deliberately not moved or reindented, so that the diff is smaller. I need this to fix bug 6244.
2012-08-15Check for stream_id, not conn, on extend cells.Nick Mathewson
Extend cells aren't allowed to have a stream_id, but we were only blocking them when they had a stream_id that corresponded to a connection. As far as I can tell, this change is harmless: it will make some kinds of broken clients not work any more, but afaik nobody actually make a client that was broken in that way. Found while hunting for other places where we made the same mistake as in 6271. Bugfix on d7f50337c14c back from May 2003, which introduced telescoping circuit construction into 0.0.2pre8.
2012-08-14Update description of what we did to upper limit on md sizeNick Mathewson
Spotted by asn
2012-08-14Fix memory leak in dirvote_create_microdescriptorNick Mathewson
Found by George, who gets a cookie.
2012-08-13Clarify the last changes messageNick Mathewson
2012-08-13oops: changes file for f45cde05f934ee95e0002ff7d72f7006ce156a4cNick Mathewson
2012-08-13Remove tor_malloc_roundup().Nick Mathewson
This function never actually did us any good, and it added a little complexity. See the changes file for more info.
2012-08-13forward-port the 0.2.2.38 changelogRoger Dingledine
2012-08-09Reject attempts to say FooPort and FooPort 0 in the same cfg domainNick Mathewson
2012-08-09Fix spaces from last patchNick Mathewson
2012-08-09Don't infer we have a FooPort from the presence of a FooPort lineNick Mathewson
Thanks to the changes we started making with SocksPort and friends in 0.2.3.3-alpha, any of our code that did "if (options->Sockport)" became wrong, since "SocksPort 0" would make that test true whereas using the default SocksPort value would make it false. (We didn't actually do "if (options->SockPort)" but we did have tests for TransPort. When we moved DirPort, ORPort, and ControlPort over to the same system in 0.2.3.9-alpha, the problem got worse, since our code is littered with checks for DirPort and ORPort as booleans. This code renames the current linelist-based FooPort options to FooPort_lines, and adds new FooPort_set options which get set at parse-and-validate time on the or_options_t. FooPort_set is true iff we will actually try to open a listener of the given type. (I renamed the FooPort options rather than leave them alone so that every previous user of a FooPort would need to get inspected, and so that any new code that forgetfully uses FooPort will need fail to compile.) Fix for bug 6507.
2012-08-09Temporarily make spurious sendmes warn louder at arma's suggestion.Nick Mathewson
2012-08-09Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-09Merge remote-tracking branch 'public/bug6252_again' into maint-0.2.3Nick Mathewson
2012-08-07forward-port the 0.2.3.20-rc changelogRoger Dingledine
2012-08-03Speak not the name of INT_MIN; it can upset older compilersNick Mathewson
And more to the point, some GCCs will warn that you can't say it before C90. Bug not in any released version of Tor.
2012-08-03Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-08-03Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3Nick Mathewson
Conflicts: src/or/routerlist.c
2012-08-03Try to clarify impact of bug 6537Nick Mathewson
I don't personally agree that this is likely to be easy to exploit, and some initial experimention I've done suggests that cache-miss times are just plain too fast to get useful info out of when they're mixed up with the rest of Tor's timing noise. Nevertheless, I'm leaving Robert's initial changelog entry in the git history so that he can be the voice of reason if I'm wrong. :)