conflux_params.h (859B)
1 /* Copyright (c) 2023, The Tor Project, Inc. */ 2 /* See LICENSE for licensing information */ 3 4 /** 5 * \file conflux_params.h 6 * \brief Header file for conflux_params.c. 7 **/ 8 9 #ifndef TOR_CONFLUX_PARAMS_H 10 #define TOR_CONFLUX_PARAMS_H 11 12 #include "core/or/or.h" 13 14 bool conflux_is_enabled(const struct circuit_t *circ); 15 uint8_t conflux_params_get_max_linked_set(void); 16 uint8_t conflux_params_get_max_prebuilt(void); 17 uint8_t conflux_params_get_max_unlinked_leg_retry(void); 18 uint8_t conflux_params_get_num_legs_set(void); 19 uint8_t conflux_params_get_max_legs_set(void); 20 uint8_t conflux_params_get_drain_pct(void); 21 uint8_t conflux_params_get_send_pct(void); 22 uint32_t conflux_params_get_max_oooq(void); 23 24 void conflux_params_new_consensus(const networkstatus_t *ns); 25 26 #ifdef TOR_UNIT_TESTS 27 extern uint32_t max_unlinked_leg_retry; 28 #endif 29 30 #endif /* TOR_CONFLUX_PARAMS_H */