| Commit message (Expand) | Author | Age |
* | Add an option to weight down authorities when choosing a fallback | Nick Mathewson | 2012-12-06 |
* | Add a way to configure selection weights for dir_server_t | Nick Mathewson | 2012-12-06 |
* | When choosing among dirserver_ts, consider their weights | Nick Mathewson | 2012-12-06 |
* | New FallbackDir option to add extra directories for bootstraping•••This replaces the old FallbackConsensus notion, and should provide a
way -- assuming we pick reasonable nodes! -- to give clients
suggestions of placs to go to get their first consensus.
| Nick Mathewson | 2012-12-06 |
* | Refactor add_trusted_dir_server•••Now creating a dir_server_t and adding it are separate functions, and
there are frontend functions for adding a trusted dirserver and a
fallback dirserver.
| Nick Mathewson | 2012-12-06 |
* | Rename trusted_dir_server_t to dir_server_t. Automatic renaming. | Nick Mathewson | 2012-12-06 |
* | Rename DirServer to DirAuthority | Nick Mathewson | 2012-12-06 |
* | Start refactoring trusted_dir_servers into trusted and fallback lists•••We use trusted_dir_server_t for two pieces of functionality: a list of
all directory authorities, and a list of initial places to look for
a directory. With this patch we start to separate those two roles.
There is as of now no actual way to be a fallback directory without being
an authority.
| Nick Mathewson | 2012-12-06 |
* | Correct moribund logic about caching v2 networkstatuses | Nick Mathewson | 2012-12-06 |
* | Make output of router_get_trusted_dir_servers const | Nick Mathewson | 2012-12-06 |
* | Merge remote-tracking branch 'asn/bug7592_take2' | Nick Mathewson | 2012-12-04 |
|\ |
|
| * | Return connection_exit_connect() if payload creation failed.•••Fixes bug #7592; bugfix on 882b389668067a29bb539d0f5bd5cb2f83b93012.
The bug is not present in any released versions of Tor.
| George Kadianakis | 2012-12-05 |
* | | fix some typos | Roger Dingledine | 2012-12-03 |
|/ |
|
* | Merge branch 'bug7013_take2_squashed' | Nick Mathewson | 2012-11-27 |
|\ |
|
| * | Introduce tor_addr_port_parse() and use it to parse ServerTransportListenAddr. | George Kadianakis | 2012-11-27 |
| * | Add a torrc option to specify the bind address of managed proxies. | George Kadianakis | 2012-11-27 |
* | | Make sure that the error in ADDRMAP events is well-formed•••"error=Unable to launch resolve request" is not a nice thing to tell
the controller. Bugfix on 0.2.0.19-alpha (c11c48fc).
| Nick Mathewson | 2012-11-23 |
* | | Minor documentation fix | Nick Mathewson | 2012-11-23 |
* | | In comments and logs, say "UTC" not "GMT"•••Fix for #6113.
Note that the RFC1123 times we generate still all say 'GMT'. I'm
going to suggest this is not worth changing.
| Nick Mathewson | 2012-11-23 |
* | | Merge branch 'bug7493_redux' | Nick Mathewson | 2012-11-18 |
|\ \ |
|
| * | | Initialize ipv{4,6}_traffic_ok in entry_connection_new•••This one is necessary for sending BEGIN cells with sane flags when
self-testing a directory port. All real entry connections were
getting their ipv{4,6}_traffic_ok flags set from their listeners, and
for begindir entry connections we didn't care, but for directory
self-testing, we had a problem.
Fixes at least one more case of 7493; if there are more lingering
cases of 7493, this might fix them too.
Bug not in any released version of Tor.
| Nick Mathewson | 2012-11-18 |
* | | | when counting available descs, say whether we're counting exits | Roger Dingledine | 2012-11-16 |
|/ / |
|
* | | Give useful warning when both IPv4 and IPv6 are disabled on a socksport | Nick Mathewson | 2012-11-15 |
* | | Allow IPv4 traffic on default and old-style-config SocksPorts.•••Looks like when i was writing the code to set the ipv4_traffic flag on
port_cfg_t, I missed some cases, such as the one where the port was
set from its default value.
Fix for 7493. Bug not in any released Tor.
| Nick Mathewson | 2012-11-15 |
* | | Set IPv4/IPv6 flags correctly when being a SOCKS client | Nick Mathewson | 2012-11-15 |
* | | Remove some XXXX commens in dns.c•••Previously, I was freaking out about passing an unspec address to
dns_found_answer() on an error, since I was using the address type to
determine whether the error was an error on an ipv4 address lookup or
on an ipv6 address lookup. But now dns_found_answer() has a separate
orig_query_type argument to tell what kind of query it is, so there's
no need to freak out.
| Nick Mathewson | 2012-11-15 |
* | | Fix up some comments in connection_edge.c | Nick Mathewson | 2012-11-15 |
* | | Add another missing function doc | Nick Mathewson | 2012-11-14 |
* | | Initial support for AAAA requests on DNSPort.•••This is imperfect, since it sends back whatever we would send to
a socks RESOLVE request, when in reality we should send back whatever
was asked for.
| Nick Mathewson | 2012-11-14 |
* | | Let tor-resolve generate PTR requests for IPv6 addresses | Nick Mathewson | 2012-11-14 |
* | | Accept reverse resolve requests for IPv6 addresses | Nick Mathewson | 2012-11-14 |
* | | Make DNS resolve requests work for IPv6•••* If there's an IPv4 and an IPv6 address, return both in the resolved
cell.
* Treat all resolve requests as permitting IPv6, since by the spec they're
allowed to, and by the code that won't break anything.
| Nick Mathewson | 2012-11-14 |
* | | Fix a bug in policy_is_reject_star() that was making IPv4 exits break•••IPv4-only exits have an implicit "reject [::]/0", which was making
policy_is_reject_star() return 1 for them, making us refuse to do
hostname lookups.
This fix chanes policy_is_reject_star() to ask about which family we meant.
| Nick Mathewson | 2012-11-14 |
* | | Add some missing doxygen for ipv6 exit code | Nick Mathewson | 2012-11-14 |
* | | Actually send back correctly-formed IPv6 CONNECTED cells•••We had some old code to send back connected cells for IPv6 addresses,
but it was wrong. Fortunately, it was also unreachable.
| Nick Mathewson | 2012-11-14 |
* | | Remove some unused defines in dns.c | Nick Mathewson | 2012-11-14 |
* | | Repair DNS NEXIST hijacking workaround•••The code previously detected wildcarding and replaced wildcarded
answers with DNS_STATUS_FAILED_PERMANENT. But that status variable
was no longer used! Remove the status variable, and instead change
the value of 'result' in evdns_callback.
Thank goodness for compiler warnings. In this case,
unused-but-set-variable.
Thanks to Linus for finding this one.
| Nick Mathewson | 2012-11-14 |
* | | Implement a PreferIPv6 flag for SocksPorts | Nick Mathewson | 2012-11-14 |
* | | Define a wrapper for evdns_base_resolve_ipv6 for systems w/o libevent 2 | Nick Mathewson | 2012-11-14 |
* | | Make address_is_invalid_destination recognize ipv6 addrs as valid. | Nick Mathewson | 2012-11-14 |
* | | Actually generate microdescriptors with p6 lines. | Nick Mathewson | 2012-11-14 |
* | | Remove a since-fixed XXX; improve a doxygen comment | Nick Mathewson | 2012-11-14 |
* | | Actually advertise IPv6 exit policies.•••I have a theory that my tests will work better if the code I'm testing
isn't disabled.
| Nick Mathewson | 2012-11-14 |
* | | Revise the DNS subsystem to handle IPv6 exits.•••Now, every cached_resolve_t can remember an IPv4 result *and* an IPv6
result. As a light protection against timing-based distinguishers for
IPv6 users (and against complexity!), every forward request generates
an IPv4 *and* an IPv6 request, assuming that we're an IPv6 exit. Once
we have answers or errors for both, we act accordingly.
This patch additionally makes some useful refactorings in the dns.c
code, though there is quite a bit more of useful refactoring that could
be done.
Additionally, have a new interface for the argument passed to the
evdns_callback function. Previously, it was just the original address
we were resolving. But it turns out that, on error, evdns doesn't
tell you the type of the query, so on a failure we didn't know whether
IPv4 or IPv6 queries were failing.
The new convention is to have the first byte of that argument include
the query type. I've refactored the code a bit to make that simpler.
| Nick Mathewson | 2012-11-14 |
* | | Change signature of router_compare_to_my_exit_policy so dns can use it•••Also, fix the function so it actually looks at our ipv6 exit policy.
| Nick Mathewson | 2012-11-14 |
* | | Whitespace cleanup | Nick Mathewson | 2012-11-14 |
* | | Reindent a block in dns.c | Nick Mathewson | 2012-11-14 |
* | | Actually send BEGIN cell flags•••This uses advertised IPv6 ports as an implicit version check.
| Nick Mathewson | 2012-11-14 |
* | | When asking for a specific address type, others aren't acceptable | Nick Mathewson | 2012-11-14 |
* | | I think it is correct to decorate these addresses. | Nick Mathewson | 2012-11-14 |