Tor 0.4.9.1-alpha-dev
Functions
conflux_params.h File Reference

Header file for conflux_params.c. More...

#include "core/or/or.h"

Go to the source code of this file.

Functions

bool conflux_is_enabled (const struct circuit_t *circ)
 
uint8_t conflux_params_get_max_linked_set (void)
 
uint8_t conflux_params_get_max_prebuilt (void)
 
uint8_t conflux_params_get_max_unlinked_leg_retry (void)
 
uint8_t conflux_params_get_num_legs_set (void)
 
uint8_t conflux_params_get_max_legs_set (void)
 
uint8_t conflux_params_get_drain_pct (void)
 
uint8_t conflux_params_get_send_pct (void)
 
void conflux_params_new_consensus (const networkstatus_t *ns)
 

Detailed Description

Header file for conflux_params.c.

Definition in file conflux_params.h.

Function Documentation

◆ conflux_params_get_drain_pct()

uint8_t conflux_params_get_drain_pct ( void  )

Return the drain percent we must hit before switching

Definition at line 242 of file conflux_params.c.

Referenced by conflux_can_switch().

◆ conflux_params_get_max_legs_set()

uint8_t conflux_params_get_max_legs_set ( void  )

Return the maximum number of legs per set.

Definition at line 235 of file conflux_params.c.

◆ conflux_params_get_max_linked_set()

uint8_t conflux_params_get_max_linked_set ( void  )

Return the maximum number of linked set we are allowed to have.

Definition at line 195 of file conflux_params.c.

◆ conflux_params_get_max_prebuilt()

uint8_t conflux_params_get_max_prebuilt ( void  )

Return the number of maximum pre built sets that is allowed to have.

Definition at line 202 of file conflux_params.c.

◆ conflux_params_get_max_unlinked_leg_retry()

uint8_t conflux_params_get_max_unlinked_leg_retry ( void  )

Return the maximum number of retry we can do until a leg links.

Definition at line 221 of file conflux_params.c.

Referenced by launch_leg_is_allowed().

◆ conflux_params_get_num_legs_set()

uint8_t conflux_params_get_num_legs_set ( void  )

Return the number of legs per set.

Definition at line 228 of file conflux_params.c.

Referenced by launch_leg_is_allowed().

◆ conflux_params_get_send_pct()

uint8_t conflux_params_get_send_pct ( void  )

Return the percent of the congestion window to send before switching.

Definition at line 249 of file conflux_params.c.

◆ conflux_params_new_consensus()

void conflux_params_new_consensus ( const networkstatus_t ns)

Update global conflux related consensus parameter values, every consensus update.

Definition at line 257 of file conflux_params.c.