]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
4 years agoFix changes file
Guinness [Mon, 13 Sep 2021 17:02:23 +0000 (19:02 +0200)] 
Fix changes file

4 years agoFix the line length in the patch
Guinness [Thu, 9 Sep 2021 11:59:33 +0000 (13:59 +0200)] 
Fix the line length in the patch

5 years agoWhen a channel hasn't seen client or cell log differently
Guinness [Wed, 2 Dec 2020 12:17:20 +0000 (13:17 +0100)] 
When a channel hasn't seen client or cell log differently

The time diffs were misleading and unpretty when a channel has not seen
a client, a cell or transmitted a cell.
This commit adds some prettier messages.

Fixes #40182

5 years agoFix build on 32-bit Windows.
Alexander Færøy [Fri, 20 Nov 2020 22:37:38 +0000 (22:37 +0000)] 
Fix build on 32-bit Windows.

Currently Tor fails with the following error:

    src/test/test_stats.c: In function ‘test_rephist_v3_onions’:
    src/test/test_stats.c:527:22: error: overflow in implicit constant conversion [-Werror=overflow]
       update_approx_time(10101010101);

This patch changes the constant passed to update_approx_time() to avoid
the overflow in the implicit conversion.

See: tor#40199

5 years agoMerge branch 'tor-gitlab/mr/221'
David Goulet [Tue, 24 Nov 2020 15:26:17 +0000 (10:26 -0500)] 
Merge branch 'tor-gitlab/mr/221'

5 years agoRemove changes files for things that went out in 0.4.5.2-alpha or earlier
Nick Mathewson [Mon, 23 Nov 2020 19:15:31 +0000 (14:15 -0500)] 
Remove changes files for things that went out in 0.4.5.2-alpha or earlier

5 years agocopy 0.4.5.2-alpha changelog forward.
Nick Mathewson [Mon, 23 Nov 2020 19:10:46 +0000 (14:10 -0500)] 
copy 0.4.5.2-alpha changelog forward.

5 years agofix two trivial comment mistakes
Roger Dingledine [Mon, 23 Nov 2020 19:08:42 +0000 (14:08 -0500)] 
fix two trivial comment mistakes

5 years agoMerge branch 'maint-0.4.5' into master
Nick Mathewson [Mon, 23 Nov 2020 19:04:05 +0000 (14:04 -0500)] 
Merge branch 'maint-0.4.5' into master

"ours" to avoid version bump.

5 years agobump to 0.4.5.2-alpha-dev
Nick Mathewson [Mon, 23 Nov 2020 19:03:14 +0000 (14:03 -0500)] 
bump to 0.4.5.2-alpha-dev

5 years agoConstify result of CONST_TO_OR_CIRCUIT.
George Kadianakis [Wed, 4 Nov 2020 13:32:05 +0000 (15:32 +0200)] 
Constify result of CONST_TO_OR_CIRCUIT.

5 years agoRevert HSv3 stats string formatting to its old %u self.
George Kadianakis [Wed, 4 Nov 2020 13:28:23 +0000 (15:28 +0200)] 
Revert HSv3 stats string formatting to its old %u self.

The rest of rephist.c is doing the same kind of unsigned casting. For example
see rep_hist_format_buffer_stats() and rep_hist_format_exit_stats().

The previous switch to %ld made Appveyor fail:
    https://ci.appveyor.com/project/torproject/tor/builds/36118502

5 years agoMerge branch 'maint-0.4.5' into master
Nick Mathewson [Sat, 21 Nov 2020 20:09:18 +0000 (15:09 -0500)] 
Merge branch 'maint-0.4.5' into master

5 years agoBump to 0.4.5.2-alpha.
Nick Mathewson [Sat, 21 Nov 2020 20:09:08 +0000 (15:09 -0500)] 
Bump to 0.4.5.2-alpha.

5 years agoMerge branch 'maint-0.4.5'
Alexander Færøy [Thu, 19 Nov 2020 17:44:00 +0000 (17:44 +0000)] 
Merge branch 'maint-0.4.5'

5 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Alexander Færøy [Thu, 19 Nov 2020 17:44:00 +0000 (17:44 +0000)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

5 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
Alexander Færøy [Thu, 19 Nov 2020 17:43:59 +0000 (17:43 +0000)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/196' into maint-0.4.3
Alexander Færøy [Thu, 19 Nov 2020 17:43:44 +0000 (17:43 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/196' into maint-0.4.3

5 years agoMerge branch 'maint-0.4.5'
Alexander Færøy [Thu, 19 Nov 2020 17:41:05 +0000 (17:41 +0000)] 
Merge branch 'maint-0.4.5'

5 years agoMention bug number in changes file.
Nick Mathewson [Thu, 19 Nov 2020 15:46:29 +0000 (10:46 -0500)] 
Mention bug number in changes file.

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/214' into master
Nick Mathewson [Thu, 19 Nov 2020 15:42:04 +0000 (10:42 -0500)] 
Merge remote-tracking branch 'tor-gitlab/mr/214' into master

5 years agoconfig: Bridge line with a transport must have a ClientTransportPlugin
David Goulet [Tue, 22 Sep 2020 14:45:52 +0000 (10:45 -0400)] 
config: Bridge line with a transport must have a ClientTransportPlugin

Fixes #25528

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'maint-0.4.5' into master
David Goulet [Wed, 18 Nov 2020 16:29:08 +0000 (11:29 -0500)] 
Merge branch 'maint-0.4.5' into master

5 years agoMerge branch 'tor-gitlab/mr/144' into maint-0.4.5
David Goulet [Wed, 18 Nov 2020 16:29:02 +0000 (11:29 -0500)] 
Merge branch 'tor-gitlab/mr/144' into maint-0.4.5

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/216'
George Kadianakis [Wed, 18 Nov 2020 10:37:02 +0000 (12:37 +0200)] 
Merge remote-tracking branch 'tor-gitlab/mr/216'

5 years agosendme: Turn log warning into debug
David Goulet [Tue, 17 Nov 2020 18:23:29 +0000 (13:23 -0500)] 
sendme: Turn log warning into debug

When sending the stream level SENDME, it is possible the cirucit was marked
for close or any other failures that can occur. These events can occur
naturally.

Fixes #40142

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'maint-0.4.5' into master
David Goulet [Tue, 17 Nov 2020 17:25:56 +0000 (12:25 -0500)] 
Merge branch 'maint-0.4.5' into master

5 years agoMerge branch 'tor-gitlab/mr/203' into maint-0.4.5
David Goulet [Tue, 17 Nov 2020 17:25:48 +0000 (12:25 -0500)] 
Merge branch 'tor-gitlab/mr/203' into maint-0.4.5

5 years agoFix script failures
Neel Chauhan [Tue, 27 Oct 2020 15:41:57 +0000 (08:41 -0700)] 
Fix script failures

5 years agoAllow listing ed25519 fingerprints on the command line
Neel Chauhan [Tue, 20 Oct 2020 23:13:26 +0000 (16:13 -0700)] 
Allow listing ed25519 fingerprints on the command line

5 years agoMerge branch 'maint-0.4.5' into master
Nick Mathewson [Tue, 17 Nov 2020 15:53:39 +0000 (10:53 -0500)] 
Merge branch 'maint-0.4.5' into master

5 years agoMerge branch 'tor-gitlab/mr/182' into master
David Goulet [Tue, 17 Nov 2020 15:36:05 +0000 (10:36 -0500)] 
Merge branch 'tor-gitlab/mr/182' into master

5 years agoconfig: Really ignore non ORPorts when removing duplicates
David Goulet [Tue, 17 Nov 2020 14:40:16 +0000 (09:40 -0500)] 
config: Really ignore non ORPorts when removing duplicates

The function in charge of removing duplicate ORPorts from our configured ports
was skipping all non ORPorts port but only for the outer loop thus resulting
in comparing an ORPort with a non-ORPort which lead to problems.

For example, tor configured with the following would fail:

  ORPort auto
  DirPort auto

Both end up being the same configuration except that one is a OR listener and
one is a Dir listener. Thus because of the missing check in the inner loop,
they looked exactly the same and thus one is removed.

Fixes #40195

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge remote-tracking branch 'tor-gitlab/mr/184' into master
Nick Mathewson [Tue, 17 Nov 2020 13:22:44 +0000 (08:22 -0500)] 
Merge remote-tracking branch 'tor-gitlab/mr/184' into master

5 years agoAdd {release,maint}-0.4.5 to git-list-tor-branches.sh
Nick Mathewson [Tue, 17 Nov 2020 13:04:55 +0000 (08:04 -0500)] 
Add {release,maint}-0.4.5 to git-list-tor-branches.sh

5 years agoBump version to 0.4.6.0-alpha-dev tor-0.4.6.0-alpha-dev
Nick Mathewson [Tue, 17 Nov 2020 13:01:08 +0000 (08:01 -0500)] 
Bump version to 0.4.6.0-alpha-dev

5 years agoMerge branch 'ticket40071_045_01_squashed' into master
Nick Mathewson [Tue, 17 Nov 2020 12:58:37 +0000 (07:58 -0500)] 
Merge branch 'ticket40071_045_01_squashed' into master

5 years agochanges: Add file for #40071
David Goulet [Thu, 12 Nov 2020 17:39:25 +0000 (12:39 -0500)] 
changes: Add file for #40071

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agorelay: Launch dummy circuit only when descriptor build fails
David Goulet [Fri, 18 Sep 2020 17:07:11 +0000 (13:07 -0400)] 
relay: Launch dummy circuit only when descriptor build fails

First, this commit moves the launch_dummy_circuit_as_needed() function into
relay_find_addr.c and renames it to relay_addr_learn_from_dirauth(). This is
an attempt to centralize anything relate with address discovery in the right
module.

Second, when building a descriptor and we fail to discover our address,
immediately launch a dummy circuit to an authority in an attempt to learn our
descriptor.

It is still only done every 20 minutes even though the descriptor build is
done every minute. We ought to avoid load on the authority and if we can't
learn in the first place our address from them, chances are more things are
wrong.

Related to #40071

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agorelay: Look at our cache when looking for an IP change
David Goulet [Fri, 18 Sep 2020 16:22:23 +0000 (12:22 -0400)] 
relay: Look at our cache when looking for an IP change

Regularly, tor looks if its IP has changed. It does the entire auto discovery
process again. However, it is possible that it does not find anything.

Instead of thinking the IP changed to an unknown address, look at our cache
and see if that value has changed.

The reason for this is because if tor gets its address as a suggestion from a
directory authority, it is because the auto discovery failed and thus that
address should be consider for the IP change check.

Related to #40071

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agorelay: Use testing circuit instead of dummy descriptor fetch
David Goulet [Fri, 18 Sep 2020 15:50:12 +0000 (11:50 -0400)] 
relay: Use testing circuit instead of dummy descriptor fetch

Tor now can learn its address from a NETINFO cell coming from an authority.
Thus, instead from launching a dummy descriptor fetch to learn the address
from the directory response (unauthenticated), we simply now launch a one-hop
testing circuit.

Related to #40071

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoAdd the compiler name, version and libs used to compile
Guinness [Tue, 17 Nov 2020 09:43:00 +0000 (10:43 +0100)] 
Add the compiler name, version and libs used to compile

This changes the behaviour of `tor --version` in such a way.
```console
src/app/tor --version
Tor version 0.4.5.1-alpha-dev (git-46ccde66a97d7985).
Tor is running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1h, Zlib 1.2.11, Liblzma 5.2.4, Libzstd 1.4.5 and Glibc 2.31 as libc.
Tor compiled with GCC version 10.2.0
```

Fixes #32102

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/197' into master
Nick Mathewson [Tue, 17 Nov 2020 03:43:09 +0000 (22:43 -0500)] 
Merge remote-tracking branch 'tor-gitlab/mr/197' into master

5 years agoMerge branch 'maint-0.4.4' into master
Nick Mathewson [Tue, 17 Nov 2020 03:42:23 +0000 (22:42 -0500)] 
Merge branch 'maint-0.4.4' into master

5 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
Nick Mathewson [Tue, 17 Nov 2020 03:42:22 +0000 (22:42 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
Nick Mathewson [Tue, 17 Nov 2020 03:42:22 +0000 (22:42 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/195' into maint-0.3.5
Nick Mathewson [Tue, 17 Nov 2020 03:42:15 +0000 (22:42 -0500)] 
Merge remote-tracking branch 'tor-gitlab/mr/195' into maint-0.3.5

5 years agoport: Don't ignore ports of a different family
David Goulet [Thu, 12 Nov 2020 16:22:02 +0000 (11:22 -0500)] 
port: Don't ignore ports of a different family

Commit c3a0f757964de0e8a24911d72abff5df20bb323c added this feature for ORPort
that we ignore any port that is not the family of our default address when
parsing the port. So if port_parse_config() was called with an IPv4 default
address, all IPv6 address would be ignored.

That makes sense for ORPort since we call twice port_parse_config() for
0.0.0.0 and [::] but for the rest of the ports, it is not good since a
perfectly valid configuration can be:

  SocksPort 9050
  SocksPort [::1]:9050

Any non-ORPort only binds by default to an IPv4 except the ORPort that binds
to both IPv4 and IPv6 by default.

The fix here is to always parse all ports within port_parse_config() and then,
specifically for ORPort, remove the duplicates or superseding ones. The
warning is only emitted when a port supersedes another.

A unit tests is added to make sure SocksPort of different family always exists
together.

Fixes #40183

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoUse connection_or_change_state() in v3 handshaking state change
Neel Chauhan [Mon, 9 Nov 2020 22:31:01 +0000 (14:31 -0800)] 
Use connection_or_change_state() in v3 handshaking state change

5 years agoFix typos.
Samanta Navarro [Wed, 11 Nov 2020 11:38:19 +0000 (11:38 +0000)] 
Fix typos.

Typos found with codespell.

Please keep in mind that this should have impact on actual code
and must be carefully evaluated:

src/core/or/lttng_circuit.inc
-    ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER)
+    ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)

5 years agoDeliberately close OR connections if proxies leave extra data
Nick Mathewson [Thu, 12 Nov 2020 16:07:33 +0000 (11:07 -0500)] 
Deliberately close OR connections if proxies leave extra data

We already did this, but we did it by accident, which is pretty
risky: if we hadn't, then our code would have treated extra data in
the inbuf as having been transmitted as TLS-authenticated data.

Closes ticket 40017; Found by opara.

5 years agoMerge branch 'ticket40187' into master
Nick Mathewson [Thu, 12 Nov 2020 14:43:09 +0000 (09:43 -0500)] 
Merge branch 'ticket40187' into master

5 years agoCorrect EOL date for 0.4.3.x
Nick Mathewson [Thu, 12 Nov 2020 14:42:54 +0000 (09:42 -0500)] 
Correct EOL date for 0.4.3.x

5 years agoFake the current time when we're loading TEST_DESCRIPTORS.
Nick Mathewson [Thu, 12 Nov 2020 14:28:27 +0000 (09:28 -0500)] 
Fake the current time when we're loading TEST_DESCRIPTORS.

Fixes bug 40187; bugfix on 0.4.5.1-alpha.

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/183' into master
Nick Mathewson [Thu, 12 Nov 2020 13:47:05 +0000 (08:47 -0500)] 
Merge remote-tracking branch 'tor-gitlab/mr/183' into master

5 years agoMerge branch 'maint-0.4.4' into master
Nick Mathewson [Thu, 12 Nov 2020 13:13:26 +0000 (08:13 -0500)] 
Merge branch 'maint-0.4.4' into master

"ours" to avoid version bump.

5 years agoBump to 0.4.4.6-dev
Nick Mathewson [Thu, 12 Nov 2020 13:13:07 +0000 (08:13 -0500)] 
Bump to 0.4.4.6-dev

5 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
Nick Mathewson [Thu, 12 Nov 2020 13:12:20 +0000 (08:12 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

"ours" to avoid version bump.

5 years agoBump to 0.4.3.7-dev
Nick Mathewson [Thu, 12 Nov 2020 13:12:11 +0000 (08:12 -0500)] 
Bump to 0.4.3.7-dev

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
Nick Mathewson [Thu, 12 Nov 2020 13:11:20 +0000 (08:11 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

"ours" to avoid version bump.

5 years agoBump to 0.3.5.12-dev
Nick Mathewson [Thu, 12 Nov 2020 13:11:01 +0000 (08:11 -0500)] 
Bump to 0.3.5.12-dev

5 years agoCopy ChangeLog and ReleaseNotes from today's releases to master branch
Nick Mathewson [Thu, 12 Nov 2020 12:37:25 +0000 (07:37 -0500)] 
Copy ChangeLog and ReleaseNotes from today's releases to master branch

5 years agochanges file for bug 40172.
Nick Mathewson [Tue, 10 Nov 2020 22:29:37 +0000 (17:29 -0500)] 
changes file for bug 40172.

5 years agoExport RANLIB so it's available in combine_libs script
Matthew Finkel [Tue, 10 Nov 2020 21:57:03 +0000 (21:57 +0000)] 
Export RANLIB so it's available in combine_libs script

Fixes 40172; bugfix on 0.4.5.1-alpha

5 years agoMerge branch 'maint-0.4.4' into master
Nick Mathewson [Mon, 9 Nov 2020 22:14:01 +0000 (17:14 -0500)] 
Merge branch 'maint-0.4.4' into master

"-s ours" to avoid version bump.

5 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
Nick Mathewson [Mon, 9 Nov 2020 22:13:41 +0000 (17:13 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

"-s ours" to avoid version bump.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
Nick Mathewson [Mon, 9 Nov 2020 22:13:25 +0000 (17:13 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

"-s ours" to avoid version bump.

5 years agoBump to 0.4.4.6
Nick Mathewson [Mon, 9 Nov 2020 22:13:02 +0000 (17:13 -0500)] 
Bump to 0.4.4.6

5 years agoBump to 0.4.3.7
Nick Mathewson [Mon, 9 Nov 2020 22:12:41 +0000 (17:12 -0500)] 
Bump to 0.4.3.7

5 years agoBump to 0.3.5.12
Nick Mathewson [Mon, 9 Nov 2020 22:12:18 +0000 (17:12 -0500)] 
Bump to 0.3.5.12

5 years agoMerge branch 'maint-0.4.4' into master
Nick Mathewson [Mon, 9 Nov 2020 21:17:50 +0000 (16:17 -0500)] 
Merge branch 'maint-0.4.4' into master

5 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
Nick Mathewson [Mon, 9 Nov 2020 21:17:42 +0000 (16:17 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
Nick Mathewson [Mon, 9 Nov 2020 21:13:42 +0000 (16:13 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/189' into maint-0.3.5
Nick Mathewson [Mon, 9 Nov 2020 21:13:24 +0000 (16:13 -0500)] 
Merge remote-tracking branch 'tor-gitlab/mr/189' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/193'
Alexander Færøy [Mon, 9 Nov 2020 14:15:07 +0000 (14:15 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/193'

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/192'
Alexander Færøy [Mon, 9 Nov 2020 14:15:03 +0000 (14:15 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/192'

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/190'
Alexander Færøy [Mon, 9 Nov 2020 14:12:45 +0000 (14:12 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/190'

5 years agoRename OpenSSL_version_num() as defined in Tor
Nick Mathewson [Fri, 6 Nov 2020 15:29:28 +0000 (10:29 -0500)] 
Rename OpenSSL_version_num() as defined in Tor

This way, if we guess wrong about whether the library has it,
we don't conflict with the library's headers.

Fixes #40181; bug not in any released version.

5 years agoMake config/parse_tcp_proxy_line work in the presence of DNS hijacking
Nick Mathewson [Thu, 5 Nov 2020 14:47:32 +0000 (09:47 -0500)] 
Make config/parse_tcp_proxy_line work in the presence of DNS hijacking

We can use our existing mocking functionality to do this: We have
been in this position before.

Fixes part of #40179; bugfix on 0.4.3.1-alpha.

5 years agoHandle a change in the implementation of hashlib in Python 3.9
Nick Mathewson [Thu, 5 Nov 2020 14:34:36 +0000 (09:34 -0500)] 
Handle a change in the implementation of hashlib in Python 3.9

Previously, hashlib.shake_256 was a class (if present); now it can
also be a function.  This change invalidated our old
compatibility/workaround code, and made one of our tests fail.

Fixes bug 40179; bugfix on 0.3.1.6-rc when the workaround code was
added.

5 years agoAdd more docs about the HSv3 stat collection period.
George Kadianakis [Tue, 3 Nov 2020 17:19:02 +0000 (19:19 +0200)] 
Add more docs about the HSv3 stat collection period.

5 years agoImprove string formatting in rep_hist_format_hs_stats().
George Kadianakis [Tue, 3 Nov 2020 15:42:36 +0000 (17:42 +0200)] 
Improve string formatting in rep_hist_format_hs_stats().

5 years agoUse CONST_TO_OR_CIRCUIT() in v2/v3 rend cell detection.
George Kadianakis [Tue, 3 Nov 2020 15:36:18 +0000 (17:36 +0200)] 
Use CONST_TO_OR_CIRCUIT() in v2/v3 rend cell detection.

5 years agoSwitch v3_onions_seen_this_period to digest256map_t.
George Kadianakis [Tue, 3 Nov 2020 15:34:46 +0000 (17:34 +0200)] 
Switch v3_onions_seen_this_period to digest256map_t.

5 years agoMerge remote-tracking branch 'tor-gitlab/mr/185' into master
George Kadianakis [Tue, 3 Nov 2020 14:06:12 +0000 (16:06 +0200)] 
Merge remote-tracking branch 'tor-gitlab/mr/185' into master

5 years agoconfigure: Check STAP_PROBEV macro when building with USDT tracing
David Goulet [Tue, 3 Nov 2020 13:59:29 +0000 (08:59 -0500)] 
configure: Check STAP_PROBEV macro when building with USDT tracing

It turns out that STAP_PROBEV() is not available on FreeBSD thus having
sdt/sdt.h is not enough. Look for it now at configure time.

Closes #40174

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoci: Add DISTCHECK to tracing test on Gitlab
David Goulet [Tue, 3 Nov 2020 13:36:02 +0000 (08:36 -0500)] 
ci: Add DISTCHECK to tracing test on Gitlab

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge remote-tracking branch 'tor-gitlab/mr/187' into master
George Kadianakis [Tue, 3 Nov 2020 11:04:09 +0000 (13:04 +0200)] 
Merge remote-tracking branch 'tor-gitlab/mr/187' into master

5 years agoAdd changes file for v3 metrics.
George Kadianakis [Tue, 27 Oct 2020 09:40:08 +0000 (11:40 +0200)] 
Add changes file for v3 metrics.

Closes ticket #23126.

5 years agoAbstract v2/v3 "format stats to str" logic into a single function.
George Kadianakis [Wed, 21 Oct 2020 14:00:08 +0000 (17:00 +0300)] 
Abstract v2/v3 "format stats to str" logic into a single function.

5 years agoAbstract v2/v3 "write stats to file" logic into a single function.
George Kadianakis [Wed, 21 Oct 2020 13:43:39 +0000 (16:43 +0300)] 
Abstract v2/v3 "write stats to file" logic into a single function.

5 years agoWrite unittests for v3 metrics.
George Kadianakis [Wed, 21 Oct 2020 11:17:30 +0000 (14:17 +0300)] 
Write unittests for v3 metrics.

5 years agoIntroduce v3 stat formatting functions.
George Kadianakis [Wed, 21 Oct 2020 11:43:29 +0000 (14:43 +0300)] 
Introduce v3 stat formatting functions.

They will be merged with the v2 ones in later commits.

5 years agoExtend get_voting_interval() so that it's callable by relays.
George Kadianakis [Mon, 2 Nov 2020 10:42:08 +0000 (12:42 +0200)] 
Extend get_voting_interval() so that it's callable by relays.

In the past, only authorities and clients had to use that function because of
the SRV subsystem. However, because of its use in rep_hist_hs_stats_init() it
will now also be used by relays when bootstrapping without a consensus. Make it
do something sensible.

Another approach (instead of using magic values) would be to wait
initialization of HSv3 stats until we get a consensus but that seems messy to
schedule.

Another approach would be to make dirauth_sched_get_configured_interval() also
work for relays (particularly when TestingNetwork is enabled), but that also
seems a good amount of work.

5 years agoIntroduce generic HS stats methods that apply to v2 and v3.
George Kadianakis [Tue, 3 Nov 2020 09:04:13 +0000 (11:04 +0200)] 
Introduce generic HS stats methods that apply to v2 and v3.

5 years agoImplement support for "v3 rend traffic" stat.
George Kadianakis [Wed, 21 Oct 2020 10:50:32 +0000 (13:50 +0300)] 
Implement support for "v3 rend traffic" stat.

5 years agoImplement support for "unique v3 onions" stat.
George Kadianakis [Wed, 1 Jul 2020 10:57:11 +0000 (13:57 +0300)] 
Implement support for "unique v3 onions" stat.

5 years agoIntroduce v3_stats_t structure and some of its methods.
George Kadianakis [Wed, 21 Oct 2020 11:32:30 +0000 (14:32 +0300)] 
Introduce v3_stats_t structure and some of its methods.

5 years agoMake room for v3: Complete move from hs_stats_t to hs_v2_stats_t.
George Kadianakis [Mon, 26 Oct 2020 16:27:16 +0000 (18:27 +0200)] 
Make room for v3: Complete move from hs_stats_t to hs_v2_stats_t.

5 years agoMake room for v3: s/hs_stats/hs_v2_stats/
George Kadianakis [Mon, 26 Oct 2020 16:19:25 +0000 (18:19 +0200)] 
Make room for v3: s/hs_stats/hs_v2_stats/