[tor-bugs] #4561 [Tor Client]: Extend Tor to no longer assume that a relay or bridge has exactly one address

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Feb 22 21:42:25 UTC 2012


#4561: Extend Tor to no longer assume that a relay or bridge has exactly one
address
------------------------+---------------------------------------------------
 Reporter:  karsten     |          Owner:                           
     Type:  project     |         Status:  assigned                 
 Priority:  normal      |      Milestone:  Sponsor G: March 31, 2012
Component:  Tor Client  |        Version:                           
 Keywords:              |         Parent:                           
   Points:              |   Actualpoints:                           
------------------------+---------------------------------------------------

Comment(by karsten):

 Here are some notes from Nick, Roger, Linus, and I discussing the topic
 yesterday:

  * For Tor 0.2.4.x, Nick and Roger agreed that every relay or bridge will
 have exactly one IPv4 and zero or one IPv6 address.  From this follows
 that a bridge descriptor can have at most two `"or-address"` lines and the
 bridge network status can have at most two `"a"` lines.  One of these
 lines may contain an IPv6 address and ports, the other will, if present,
 contain the IPv4 in the `"router"` line and list all ports not in the
 `"r"` line.

  * In order to finish this ticket in a way that we can honestly say we
 completed it, we're going to change all places accessing a uint32_t
 containing an IPv4 address (e.g., ri->addr) to call a function (like
 get_an_addr(ri)).  This similarly applies to rs and possibly other places
 where IP addresses are referenced in the Tor code.

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


More information about the tor-bugs mailing list