tor  0.4.1.0-alpha-dev
hs_stats.c
Go to the documentation of this file.
1 /* Copyright (c) 2016-2019, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
9 #include "core/or/or.h"
10 #include "feature/hs/hs_stats.h"
11 #include "feature/hs/hs_service.h"
12 
14 static uint32_t n_introduce2_v3 = 0;
16 static uint32_t n_introduce2_v2 = 0;
18 static uint32_t n_rendezvous_launches = 0;
19 
21 void
23 {
24  if (is_hsv3) {
26  } else {
28  }
29 }
30 
32 uint32_t
34 {
35  return n_introduce2_v3;
36 }
37 
39 uint32_t
41 {
42  return n_introduce2_v2;
43 }
44 
46 void
48 {
50 }
51 
53 uint32_t
55 {
56  return n_rendezvous_launches;
57 }
58 
static uint32_t n_rendezvous_launches
Definition: hs_stats.c:18
uint32_t hs_stats_get_n_rendezvous_launches(void)
Definition: hs_stats.c:54
Header file containing service data for the HS subsytem.
void hs_stats_note_introduce2_cell(int is_hsv3)
Definition: hs_stats.c:22
void hs_stats_note_service_rendezvous_launch(void)
Definition: hs_stats.c:47
uint32_t hs_stats_get_n_introduce2_v2_cells(void)
Definition: hs_stats.c:40
Header file for hs_stats.c.
static uint32_t n_introduce2_v3
Definition: hs_stats.c:14
uint32_t hs_stats_get_n_introduce2_v3_cells(void)
Definition: hs_stats.c:33
Master header file for Tor-specific functionality.
static uint32_t n_introduce2_v2
Definition: hs_stats.c:16