[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #7953 [Tor]: Control port method to get v3 directory informaion
#7953: Control port method to get v3 directory informaion
--------------------------------------------------+-------------------------
Reporter: atagar | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: Tor: 0.2.5.x-final
Component: Tor | Version:
Keywords: tor-client controller needs-proposal | Parent:
Points: | Actualpoints:
--------------------------------------------------+-------------------------
Comment(by atagar):
God I'm awful at making sense of C. Ok, think I understand what's up...
* Commit 3ad6dc0e switched us from v2 to v3 network status documents.
* The getinfo_helper_networkstatus in networkstatus.c operates on
routerstatus_t. That struct (in or.h) is version agnostic. It's used for
both v2 and v3 network status documents.
* Prior to commit 3ad6dc0e getinfo_helper_networkstatus operated on
routerstatus_list, which were v2 router status entries.
* Commit 3ad6dc0e removed routerstatus_list in favour of
current_consensus->routerstatus_list. The current_consensus is a
networkstatus_vote_t, which is a v3 network status document.
TL;DR. When we switch tor to v3 network status documents in 2007 the
control protocol switched as well. No one noticed because v3 router status
entries are a superset of v2. We should probably simply pretend that
GETINFO always provided v3 responses and change the spec.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7953#comment:14>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs