Currently, pt_get_extra_info_descriptor_string() uses router_pick_published_address() to retrieve our external IP address so that it can write it in our extra-info descriptor along with the TCP port that our transport listens on.
I would like to work on this. Do I need to create a wrapper around router_pick_published_address() which will take family as an argument and return the address as IPv4 or IPv6 accordingly, if it exists and return -1 otherwise?
Since you've posted implementation questions on two different tickets, I'm going to leave you to answer some of the detailed pluggable transport questions on this ticket.
There are four cases in pt_get_extra_info_descriptor_string():
the pluggable transport has told us it is listening on a specific IPv4 address
this case is already handled correctly
the pluggable transport has told us it is listening on a specific IPv6 address
this case is handled correctly for transports that are IPv6-only
one address is used for transports that are dual-stack, but which one?
do any current pluggable transports (PTs) supply their specific IPv6 address?
what do transports with an IPv4 and an IPv6 address do?
how does Tor handle what they do?
transport_t only has one address/port field, so dual stack transports are not supported
the pluggable transport has told us it is listening on all IPv4 addresses
this case is already handled correctly
the pluggable transport has told us it is listening on all IPv6 addresses
do any current pluggable transports (PTs) say they are listening on all IPv6 addresses?
how do we distinguish between IPv4 only, IPv4/IPv6 and IPv6 only transports?
what do transports with an IPv4 and an IPv6 address do?
do they give the address as 0.0.0.0, ::, or [::]?
how does Tor handle what they do?
transport_t only has one address/port field, so dual-stack transports may be ambiguous or not supported
I would like to work on this. Do I need to create a wrapper around router_pick_published_address() which will take family as an argument and return the address as IPv4 or IPv6 accordingly, if it exists and return -1 otherwise?
Once you've answered the questions for case 4, you'll know if you need to do this or not.
Trac: Keywords: ipv6 anticensorship needs-spec refactor easy deleted, ipv6 anticensorship needs-spec refactor added Description: Currently, pt_get_extra_info_descriptor_string() uses router_pick_published_address() to retrieve our external IP address so that it can write it in our extra-info descriptor along with the TCP port that our transport listens on.
Not sure if this can get in 0.2.4.x. I guess it depends on how quickly we implement it, and how complex the changes are going to be.
to
Currently, pt_get_extra_info_descriptor_string() uses router_pick_published_address() to retrieve our external IP address so that it can write it in our extra-info descriptor along with the TCP port that our transport listens on.
Not sure if this can get in 0.2.4.x. I guess it depends on how quickly we implement it, and how complex the changes are going to be. Status: new to needs_information
I think that I need to be more familiar with the codebase first in order to move to difficult issues. Thank you for your response teor, I really appreciate it :) I will take on some easy issues related to Pluggable Transports to get familiar, and will try to resolve difficult ones after that.