[tor-bugs] #4676 [Tor Relay]: Eliminate "family" field in tor_addr_t

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Dec 9 10:42:29 UTC 2011


#4676: Eliminate "family" field in tor_addr_t
-------------------------+--------------------------------------------------
 Reporter:  nickm        |          Owner:                    
     Type:  enhancement  |         Status:  needs_review      
 Priority:  normal       |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Relay    |        Version:                    
 Keywords:               |         Parent:                    
   Points:               |   Actualpoints:                    
-------------------------+--------------------------------------------------

Comment(by rransom):

 {{{
 00:19 < wanoskarnet> re branch "short_address_rep": any explicitly non
 inited tor_addr_t structs will have AF_INET6 family, that hides exist
 family related bugs.
 }}}

 The all-zero IPv6 address is used as `in6addr_any` by the IPv6 code, so if
 we use that as a special ‘uninitialized’ value of `tor_addr_t`, we'll have
 to do some careful fiddling to be able to specify `in6addr_any` in certain
 inputs and pass it to networking functions.

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


More information about the tor-bugs mailing list