[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #24604 [Core Tor/Tor]: Decorate IPv6 addresses in connection_t->address to avoid ambiguity



#24604: Decorate IPv6 addresses in connection_t->address to avoid ambiguity
------------------------------+--------------------------------
     Reporter:  teor          |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.3.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  ipv6, tor-relay
Actual Points:                |  Parent ID:  #24403
       Points:  2             |   Reviewer:
      Sponsor:  SponsorV-can  |
------------------------------+--------------------------------
 Currently, connection_t->address can be in one of three formats:
 * hostname: www.example.com
 * IPv4: 1.1.1.1
 * IPv6: 2003::0001

 Tor often uses this address with a port like this:
 * hostname: www.example.com:1234
 * IPv4: 1.1.1.1:1234
 * IPv6: 2003::0001:1234

 The IPv6 case is ambiguous, and we should fix it.

 One way of fixing it is to provide a flag if address is an IPv6 literal,
 and a function to format address and port. (Unfortunately, we can't always
 decorate IPv6 addresses, because that would cause bugs in other code and
 in controllers.)

 Then we would need to go through every instance of `conn->address` and
 find the ones that use a port. This may also require a spec update, like
 #24603.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24604>
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