Tor  0.4.7.0-alpha-dev
circuitpadding_machines.h
Go to the documentation of this file.
1 /* Copyright (c) 2018 The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
4 /**
5  * \file circuitpadding_machines.h
6  * \brief Header file for circuitpadding_machines.c.
7  **/
8 
9 #ifndef TOR_CIRCUITPADDING_MACHINES_H
10 #define TOR_CIRCUITPADDING_MACHINES_H
11 
16 
17 #ifdef CIRCUITPADDING_MACHINES_PRIVATE
18 
19 /** State of the padding machines that actually sends padding */
20 #define CIRCPAD_STATE_OBFUSCATE_CIRC_SETUP CIRCPAD_STATE_BURST
21 
22 /** Constants defining the amount of padding that a machine will send to hide
23  * HS circuits. The actual value is sampled uniformly random between the
24  * min/max values.
25  */
26 
27 /** Minimum number of relay-side padding cells to be sent by this machine */
28 #define INTRO_MACHINE_MINIMUM_PADDING 7
29 /** Maximum number of relay-side padding cells to be sent by this machine.
30  * The actual value will be sampled between the min and max.*/
31 #define INTRO_MACHINE_MAXIMUM_PADDING 10
32 
33 #endif /* defined(CIRCUITPADDING_MACHINES_PRIVATE) */
34 
35 #endif /* !defined(TOR_CIRCUITPADDING_MACHINES_H) */
void circpad_machine_client_hide_rend_circuits(smartlist_t *machines_sl)
void circpad_machine_client_hide_intro_circuits(smartlist_t *machines_sl)
void circpad_machine_relay_hide_intro_circuits(smartlist_t *machines_sl)
void circpad_machine_relay_hide_rend_circuits(smartlist_t *machines_sl)