[tor-bugs] #18982 [Core Tor/Tor]: Tor should log 1-based hop numbers

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri May 6 21:56:32 UTC 2016


#18982: Tor should log 1-based hop numbers
------------------------------+--------------------------
     Reporter:  teor          |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Low           |  Milestone:  Tor: 0.2.???
    Component:  Core Tor/Tor  |    Version:
     Severity:  Minor         |   Keywords:  easy logging
Actual Points:                |  Parent ID:
       Points:  small         |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------
 The control-spec says hops are 1-based, and we often log "first hop":
 {{{
   If HOP=HopNum is specified, Tor will choose the HopNumth hop in the
   circuit as the exit node, rather than the last node in the circuit.
   Hops are 1-indexed; generally, it is not permitted to attach to hop 1.
 }}}

 But the following functions log 0-based hops:
 * choose_good_middle_server
 * onion_extend_cpath (which also logs a 1-based hop message as well)

 We need to add 1 to the 0-based hop counts in these functions.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18982>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list