| Commit message (Collapse) | Author | Age |
|
|
|
| |
Fix for bug 7086.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
src/or/circuitbuild.c
The conflict was trivial, since no line of code actually changed in
both branches: There was a fmt_addr() that turned into fmt_addrport()
in bug7011, and a "if (!n_conn)" that turned into "if (!n_chan)" in
master.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is mostly a conversion from this pattern:
log("... %s:%d ...", fmt_and_decorate_addr(&addr), port);
to this:
log("... %s ...", fmt_addrport(&addr, port));
The output is the same in all cases.
|
|/ |
|
|
|
|
|
|
| |
They weren't actually used since 7a35dad00
Bug 5809
|
|\ |
|
| |
| |
| |
| | |
This affects both directory authorities and bridge authoritites.
|
|/
|
|
|
| |
This helps us split up one of our larger files, and sets the stage
for refactoring the configuration backend a little
|
|\ |
|
| | |
|
|\ \ |
|
| |/
| |
| |
| | |
Implements ticket 6789.
|
|/
|
|
|
|
|
|
| |
If dirvote_create_microdescriptor() returns NULL, don't use md.
Found by "f. tp.".
Fixes bug 6797.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
See #4771 for rationale.
Note that this patch does not take suggested changes in #4470 into
account and keeps treating AuthDirHasIPv6Connectivity as an
AUTOBOOL. Thus, bug fixes for that are included here as well.
This is a fix on master, unreleased as of now.
|
|
|
|
| |
In case the struct grows in the future. Shouldn't be too expensive.
|
| |
|
|
|
|
|
|
|
|
|
| |
Generate and store all supported microdescriptor formats. Generate
votes with one "m" line for each format. Only "m" lines with version
info matching chosen consensus method will be voted upon.
An optimisation would be to combine "m" lines with identical hashes,
i.e. instead of "m 1,2,3 H1" and "m 4,5 H1", say "m 1,2,3,4,5 H1".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define new new consensus method 14 adding "a" lines to vote and
consensus documents.
From proposal 186:
As with other data in the vote derived from the descriptor, the
consensus will include whichever set of "a" lines are given by the
most authorities who voted for the descriptor digest that will be
used for the router.
This patch implements this.
|
|\ |
|
| |
| |
| |
| | |
Resolves #6621.
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Fix for bug 5124.
|
|\ \ \
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Test for config option AuthDirPublishIPv6 == 1 rather than for running
as a bridge authority when deciding whether to care or not about IPv6
OR ports in descriptors.
Implements enhancement #6406.
|
| | | |
|
| | |
| | |
| | |
| | | |
Implements enhancement 5974.
|
| | |
| | |
| | |
| | | |
both OR ports.
|
| | | |
|
| | |
| | |
| | |
| | | |
To have only reachable ports in "a" lines.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
We can end up in dirserv_orconn_tls_done() with a node missing
routerinfo in at least two cases -- command_process_certs_cell() and
connection_or_check_valid_tls_handshake() -- and probably more.
|
|/ / |
|
|/
|
|
|
|
|
|
|
|
|
| |
The SMARTLIST_FOREACH macro is more convenient than BEGIN/END when
you have a nice short loop body, but using it for long bodies makes
your preprocessor tell the compiler that all the code is on the same
line. That causes grief, since compiler warnings and debugger lines
will all refer to that one line.
So, here's a new style rule: SMARTLIST_FOREACH blocks need to be
short.
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
src/or/dirserv.c
|
| |
| |
| |
| | |
this is a tweak on the fix in f87c6f100d (see also #2088)
|
|\ \
| | |
| | |
| | |
| | | |
Conflicts:
src/or/geoip.c
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
%f is correct; %lf is only needed with scanf. Apparently, on some
old BSDs, %lf is deprecated.
Didn't we do this before? Yes, we did. But we only got the
instances of %lf, not more complicated things like %.5lf . This
patch tries to get everything.
Based on a patch for 3894 by grarpamp.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Also, try to resolve some doxygen issues. First, define a magic
"This is doxygen!" macro so that we take the correct branch in
various #if/#else/#endifs in order to get the right documentation.
Second, add in a few grouping @{ and @} entries in order to get some
variables and fields to get grouped together.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When we started RefuseUnknownExits back in 0.2.2.11-alpha, we
started making exits act like they cache directory info (since they
need an up-to-date idea of who is really a router). But this
included fetching needless (unrecognized) authorities' certs, which
doesn't make any sense for them.
This is related to, but not necessarily the same as, the issue that
Ian reported for bug #2297.
(This patch is based on a patch from a user who I believe has asked
not to be named. If I'm wrong about that, please add the
appropriate name onto the changelog.)
|
| | | | |
|
|/ / /
| | |
| | |
| | | |
Closes ticket 4572.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A previous commit in the 5527 branch had moved
router_get_mutable_by_digest(digest_rcvd) to happen before we did
tor_assert(digest_rcvd), which would have defeated the purpose of
the assert.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Specifically, I believe it dates back to when extend cells had address:port
but no digest in them. The special edge case is certainly not worth the
complexity these days.
|
| | | |
|