David Goulet
f30f53e099
Merge branch 'tor-github/pr/1907'
2020-07-01 12:26:19 -04:00
Neel Chauhan
4173876bc4
Add GETINFO "rephist/{tap,ntor}/onion_handshakes_{assigned/requested}" test
2020-07-01 12:00:53 -04:00
Neel Chauhan
4477317cbe
control: Add a key to GETINFO to fetch the circuit onion handshake rephist values
2020-07-01 12:00:53 -04:00
Nick Mathewson
368156fcb7
Merge branch 'ticket34137'
2020-07-01 10:34:39 -04:00
Nick Mathewson
5d956d797b
Add a comment explaining reachability vs bandwidth self-tests
...
This is in response to a question about why we don't always log
orport self-tests as reachability tests.
I'm not 100% convinced that bandwidth self-tests are still useful,
but that's an issue for another day. :)
2020-07-01 10:33:27 -04:00
David Goulet
b039d3e803
Merge branch 'tor-github/pr/1953'
2020-07-01 09:47:26 -04:00
George Kadianakis
7f999203ce
Merge branch 'maint-0.4.4'
2020-07-01 12:55:03 +03:00
George Kadianakis
0d02c053f8
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-07-01 12:55:03 +03:00
George Kadianakis
1932a84ef5
Merge branch 'maint-0.4.2' into maint-0.4.3
2020-07-01 12:55:02 +03:00
George Kadianakis
38208185be
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-07-01 12:55:02 +03:00
George Kadianakis
9beae02713
Merge branch 'tor-github/pr/1766' into maint-0.3.5
2020-07-01 12:54:29 +03:00
Nick Mathewson
8f59b3e6f2
resolve_addr.c: remove a needless quote mark
2020-06-30 14:36:11 -04:00
David Goulet
ec57cbf179
addr: Document better is_local_addr_to_resolve_addr()
...
This function is about learning if a given address is local to us as in the
resolved address as a relay.
Closes #40009
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-30 13:50:01 -04:00
David Goulet
2ac2ba4e2c
node: Rename addrs_in_same_network_family()
...
New name reflects that the function is only used to compare router addresses
in order to learn if they are in the same network.
The network check is /16 and /32 respectively for IPv4 and IPv6.
Related to #40009
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-30 13:48:22 -04:00
Nick Mathewson
2238b6320b
Refactor reachability test logging: log exactly what we launch.
...
Previously we had two chains of logic for reachability tests: one
for launching them, and one for telling the user that we had
launched them. Now, we simply have the launch code inform the user:
this way, we can't get out of sync.
Closes ticket 34137.
2020-06-30 11:12:46 -04:00
Alexander Færøy
dbb70d85bf
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-06-30 14:23:41 +00:00
Alexander Færøy
8697205be4
Merge branch 'tor-github/pr/1909' into maint-0.3.5
2020-06-30 14:23:17 +00:00
Alexander Færøy
5a38c73f70
Merge branch 'tor-github/pr/1887' into maint-0.4.3
2020-06-30 14:19:28 +00:00
Alexander Færøy
881f50a9a9
Merge branch 'tor-github/pr/1806' into maint-0.4.2
2020-06-30 14:15:57 +00:00
Alexander Færøy
c9c4a3d0f6
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-06-30 14:03:04 +00:00
Alexander Færøy
8444fbe904
Merge branch 'tor-github/pr/1793' into maint-0.3.5
2020-06-30 13:55:39 +00:00
Alexander Færøy
483082b57b
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-06-30 13:48:49 +00:00
Alexander Færøy
c3ad2a1d23
Merge branch 'tor-github/pr/1785' into maint-0.3.5
2020-06-30 13:47:55 +00:00
Alexander Færøy
b0bfee8c78
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-06-30 13:37:20 +00:00
Alexander Færøy
bebdd2888f
Merge remote-tracking branch 'nickm-github/bug32884_035' into maint-0.3.5
2020-06-30 13:35:13 +00:00
Alexander Færøy
96876d3ad7
Merge branch 'tor-github/pr/1940'
2020-06-30 01:22:44 +00:00
Nick Mathewson
d235e523d5
Merge branch 'ticket33290_v2_042' into maint-0.4.2
2020-06-29 13:57:13 -04:00
Nick Mathewson
a692b87f82
Merge remote-tracking branch 'tor-github/pr/1696/head' into maint-0.4.2
2020-06-29 13:53:27 -04:00
Nick Mathewson
0575a182a6
Merge remote-tracking branch 'tor-github/pr/1697/head' into maint-0.4.2
2020-06-29 13:48:25 -04:00
Nick Mathewson
216456299f
Merge remote-tracking branch 'tor-github/pr/1722/head' into maint-0.4.2
2020-06-29 12:58:23 -04:00
Nick Mathewson
3008255aea
Merge remote-tracking branch 'tor-github/pr/1829/head' into maint-0.4.3
2020-06-29 12:56:39 -04:00
Nick Mathewson
fd8ce812b0
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-06-29 12:55:35 -04:00
Nick Mathewson
0c0214bcc0
Merge remote-tracking branch 'tor-github/pr/1725/head' into maint-0.3.5
2020-06-29 12:55:27 -04:00
Alexander Færøy
f1932265fc
Merge branch 'dgoulet/tor-ticket40008_045_01'
2020-06-29 14:09:53 +00:00
Nick Mathewson
5336ac2669
Move remaining CodeStructure.md contents into doxygen.
2020-06-26 10:11:42 -04:00
Nick Mathewson
a7aa97298b
Remove special authority semantics for AssumeReachable.
...
AssumeReachable should only be about whether a relay thinks that it
is reachable itself. But previously, we've had it also turn off
reachability checking of _other_ relays on authorities.
(Technically, reachability tests were still run, but we would ignore
the results.)
With this patch, there is a new AuthDirTestReachability option
(default 1) that controls whether authorities run reachability
tests.
Making this change allows us to have test networks where authorities
set AssumeReachable without disabling their reachability testing
entirely.
Closes ticket #34445 .
2020-06-26 08:37:36 -04:00
Nick Mathewson
dbc2b75009
Merge branch 'assume_reachable_revamp'
2020-06-26 08:34:56 -04:00
Nick Mathewson
cb25f57724
Remove stub macro for router_new_consensus_params()
...
I had incorrectly believed that the router.c file was disabled when
we were building with relay mode disabled.
2020-06-26 08:32:33 -04:00
David Goulet
40922629fe
addr: Look at /48 for IPv6 in is_local_addr()
...
Closes #33618
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-25 13:45:05 -04:00
David Goulet
069566b40a
Merge branch 'tor-github/pr/1951'
2020-06-25 13:41:45 -04:00
David Goulet
374626c09b
Merge branch 'tor-github/pr/1917'
2020-06-25 13:35:34 -04:00
Neel Chauhan
7b2ab93f65
Add test for fingerprint-ed25519 file
2020-06-25 13:35:15 -04:00
Neel Chauhan
ef563a8fef
Add an fingerprint-ed25519 file to the data directory
2020-06-25 13:35:15 -04:00
David Goulet
dc4f3a219f
Merge branch 'tor-github/pr/1948'
2020-06-25 10:13:04 -04:00
Nick Mathewson
50abc06d84
Remove now-unused OPTIONS_DUMP_DEFAULTS.
2020-06-25 10:02:17 -04:00
Nick Mathewson
62e1d983cf
Deprecate the "--dump-config non-builtin" option
...
When it works, "non-builtin" doesn't do anything different from
"short". (When it doesn't work, it gives an assertion failure.)
Closes ticket #33398 .
2020-06-25 10:01:40 -04:00
David Goulet
c370b4a049
Merge branch 'maint-0.4.4'
2020-06-25 07:36:56 -04:00
David Goulet
fd5b2d0f1c
Merge branch 'tor-github/pr/1935'
2020-06-24 15:48:47 -04:00
Neel Chauhan
c8fd7b7040
Make HSFETCH take the decoded length into account, not the base32 one
2020-06-24 15:47:57 -04:00
Nick Mathewson
edb023b1e7
Add an AssumeReachableIPv6 autobool option.
...
This option tells Tor that our IPv6 orport is reachable, and doesn't
need to be checked.
Closes the rest of 33224.
2020-06-24 15:25:34 -04:00