Reachability example code does not support IPv6

Originator:Raubtiger
Number:rdar://19154978 Date Originated:05-Dec-2014 10:48 AM
Status:Open Resolved:
Product:Sample Code Product Version:3.5
Classification:Serious Bug Reproducible:Always
 
Summary:
[Reachability reachabilityWithAddress:] only supports IPv4. IPv4 is (more or less) deprecated. The example should be upgraded to IPv6. 

Steps to Reproduce:
1. look at the code
2. see the sockaddr_in structure used in the call

Expected Results:
the sockaddr_in6 structure (and its corresponding functions) should be used.

Actual Results:
can't check the reachabilty of a IPv6 address.

Regression:
n/a 

Notes:
The adoption of IPv6 is at 5% already: http://www.google.com/intl/en/ipv6/statistics.html

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!