|
Tor 0.4.9.3-alpha-dev
|
Header file containing denial of service defenses for the HS subsystem for all versions. More...
Go to the source code of this file.
Functions | |
| void | hs_dos_init (void) |
| void | hs_dos_consensus_has_changed (const networkstatus_t *ns) |
| bool | hs_dos_can_send_intro2 (or_circuit_t *s_intro_circ) |
| void | hs_dos_setup_default_intro2_defenses (or_circuit_t *circ) |
| uint64_t | hs_dos_get_intro2_rejected_count (void) |
Header file containing denial of service defenses for the HS subsystem for all versions.
Definition in file hs_dos.h.
| bool hs_dos_can_send_intro2 | ( | or_circuit_t * | s_intro_circ | ) |
Return true iff an INTRODUCE2 cell can be sent on the given service introduction circuit.
Definition at line 167 of file hs_dos.c.
Referenced by handle_introduce1().
| void hs_dos_consensus_has_changed | ( | const networkstatus_t * | ns | ) |
| uint64_t hs_dos_get_intro2_rejected_count | ( | void | ) |
Return rolling count of rejected INTRO2.
Definition at line 219 of file hs_dos.c.
Referenced by fill_dos_values().
| void hs_dos_init | ( | void | ) |
Initialize the onion service Denial of Service subsystem.
Definition at line 226 of file hs_dos.c.
Referenced by tor_init().
| void hs_dos_setup_default_intro2_defenses | ( | or_circuit_t * | circ | ) |
Initialize the INTRODUCE2 token bucket for the DoS defenses using the consensus/default values. We might get a cell extension that changes those later but if we don't, the default or consensus parameters are used.
Definition at line 138 of file hs_dos.c.
Referenced by handle_verified_establish_intro_cell().