tor  0.4.2.1-alpha-dev
Functions | Variables
hs_stats.c File Reference
#include "core/or/or.h"
#include "feature/hs/hs_stats.h"
#include "feature/hs/hs_service.h"

Go to the source code of this file.

Functions

void hs_stats_note_introduce2_cell (int is_hsv3)
 
uint32_t hs_stats_get_n_introduce2_v3_cells (void)
 
uint32_t hs_stats_get_n_introduce2_v2_cells (void)
 
void hs_stats_note_service_rendezvous_launch (void)
 
uint32_t hs_stats_get_n_rendezvous_launches (void)
 

Variables

static uint32_t n_introduce2_v3 = 0
 
static uint32_t n_introduce2_v2 = 0
 
static uint32_t n_rendezvous_launches = 0
 

Detailed Description

Keeps stats about the activity of our onion service(s).

Definition in file hs_stats.c.

Function Documentation

◆ hs_stats_get_n_introduce2_v2_cells()

uint32_t hs_stats_get_n_introduce2_v2_cells ( void  )

Return the number of v2 INTRODUCE2 cells we have received.

Definition at line 40 of file hs_stats.c.

References n_introduce2_v2.

◆ hs_stats_get_n_introduce2_v3_cells()

uint32_t hs_stats_get_n_introduce2_v3_cells ( void  )

Return the number of v3 INTRODUCE2 cells we have received.

Definition at line 33 of file hs_stats.c.

References n_introduce2_v3.

◆ hs_stats_get_n_rendezvous_launches()

uint32_t hs_stats_get_n_rendezvous_launches ( void  )

Return the number of rendezvous circuits we have attempted to launch.

Definition at line 54 of file hs_stats.c.

References n_rendezvous_launches.

◆ hs_stats_note_introduce2_cell()

void hs_stats_note_introduce2_cell ( int  is_hsv3)

Note that we received another INTRODUCE2 cell.

Definition at line 22 of file hs_stats.c.

References n_introduce2_v2, and n_introduce2_v3.

◆ hs_stats_note_service_rendezvous_launch()

void hs_stats_note_service_rendezvous_launch ( void  )

Note that we attempted to launch another circuit to a rendezvous point.

Definition at line 47 of file hs_stats.c.

References n_rendezvous_launches.

Variable Documentation

◆ n_introduce2_v2

uint32_t n_introduce2_v2 = 0
static

Number of v2 INTRODUCE2 cells received

Definition at line 16 of file hs_stats.c.

Referenced by hs_stats_get_n_introduce2_v2_cells(), and hs_stats_note_introduce2_cell().

◆ n_introduce2_v3

uint32_t n_introduce2_v3 = 0
static

Number of v3 INTRODUCE2 cells received

Definition at line 14 of file hs_stats.c.

Referenced by hs_stats_get_n_introduce2_v3_cells(), and hs_stats_note_introduce2_cell().

◆ n_rendezvous_launches

uint32_t n_rendezvous_launches = 0
static

Number of attempts to make a circuit to a rendezvous point

Definition at line 18 of file hs_stats.c.

Referenced by hs_stats_get_n_rendezvous_launches(), and hs_stats_note_service_rendezvous_launch().