Help me understand what I am seeing when testing Reachability code using the Network link conditioner. Here is my vanilla Reachability code:
Reachability* wifiReach = [[Reachability reachabilityWithHostName: @"www.apple.com"] retain];
NetworkStatus netStatus = [wifiReach currentReachabilityStatus];
switch (netStatus)
{
case NotReachable:
{
NSLog(@"Access Not Available");
break;
}
case ReachableViaWWAN:
{
NSLog(@"Reachable WWAN");
break;
}
case ReachableViaWiFi:
{
NSLog(@"Reachable WiFi");
break;
}
}
Now, when I test this code using the Network Link Conditioner using the "100% Loss" preset - the value of netStatus
is ReachableViaWWAN
, which I wasn't expecting. I read a lot of complaints that Reachability doesn't really test connectivity, rather it tests the potential of connectivity. So here's my question:
Is the "100% Loss" preset allowing the DNS requests to the Apple server pass through, but not letting any packets through?