[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #17952 [Tor]: Make address family search via ioctl more accurate on obscure platforms
#17952: Make address family search via ioctl more accurate on obscure platforms
-----------------------------+-----------------------------
Reporter: teor | Owner:
Type: enhancement | Status: new
Priority: Medium | Milestone: Tor: 0.2.???
Component: Tor | Version:
Severity: Normal | Keywords: ipv6 easy lorax
Actual Points: | Parent ID:
Points: | Sponsor:
-----------------------------+-----------------------------
The following address family search functions only return an IPv6 address
on some platforms:
* ioctl(.,SIOCGIFCONF,.) only returns IPv4 addresses, except:
* on HP-UX and Solaris, which support AF_INET6 with SIOCGLIFCONF
* see http://www.manpages.info/sunos/if_tcp.7.html
* on AIX, using the sa_len field in struct sockaddr to distinguish
between IPv4 and IPv6 addresses
* on MVS and z/OS, which support AF_INET6 with SIOCGIFCONF6 /
__net_ifconf6header_s
* see http://www-01.ibm.com/support/docview.wss?uid=isg1PK22885 for
details
* on these platforms, we should try AF_INET, then AF_INET6, and then
both addresses should be returned
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17952>
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