aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2016-09-05 18:48:15 +0300
committerNick Mathewson <nickm@torproject.org>2016-12-14 15:17:58 -0500
commit2b9abbef2e5d0e58e5a15b7cf8cd03965aa70117 (patch)
tree5f29c377754d924e2b8945f1b0da0edac5161b02 /src/or/circuitlist.c
parente17cc3f0a6283bf9aa04e845f23ccfb8b2db24c3 (diff)
downloadtor-2b9abbef2e5d0e58e5a15b7cf8cd03965aa70117.tar.gz
tor-2b9abbef2e5d0e58e5a15b7cf8cd03965aa70117.zip
prop224 prepwork: Introduce HS circuitmap subsystem.
The HS circuitmap is a hash table that maps introduction and rendezvous tokens to specific circuits such that given a token it's easy to find the corresponding circuit. It supports rend circuits and v2/v3 intro circuits. It will be used by the prop224 ESTABLISH_INTRO code to register and lookup v3 introduction circuits. The next commit after this removes the old code and fixes the unittests. Please consult both commits while reviewing functionality differences between the old and new code. Let me know if you want this rebased differently :) WRT architectural differences, this commit removes the rendinfo pointer from or_circuit_t. It then adds an hs_token_t pointer and a hashtable node for the HS circuitmap. IIUC, this adds another pointer to the weight of or_circuit_t. Let me know if you don't like this, or if you have suggestions on improving it.
Diffstat (limited to 'src/or/circuitlist.c')
0 files changed, 0 insertions, 0 deletions