[tor-bugs] #6876 [Tor Relay]: Add config option OutboundBindAddressIPv6

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Sep 20 15:10:32 UTC 2012


#6876: Add config option OutboundBindAddressIPv6
-------------------------+--------------------------------------------------
 Reporter:  ln5          |          Owner:                    
     Type:  enhancement  |         Status:  needs_review      
 Priority:  normal       |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor Relay    |        Version:                    
 Keywords:  ipv6         |         Parent:                    
   Points:               |   Actualpoints:                    
-------------------------+--------------------------------------------------

Comment(by ln5):

 Replying to [comment:6 nickm]:
 > Hmm.  It feels ouchy to go through this whole business every time we
 want to bind an outbound socket.  Can't we just parse the addresses at
 configuration time, verify that they match the right address family then,
 and simplify the code that does the binding?

 That's the second option in my initial comment:

     Either we add OutboundBindAddressIPv6 or we start parsing
     OutboundBindAddress when we read configuration and store two outbound
     addresses, one for each supported address family.

 If we do that, wouldn't OutboundBindAddress accepting both IPv4 and
 IPv6 addresses be the better solution? See branch enh6876_2 for an
 implementation of that.

 Should we go even further and store struct sockaddr_in*'s and
 socklen_t's in or_options_t? Or maybe struct sockaddr_storage's and
 lenghts?

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


More information about the tor-bugs mailing list