We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICMP Destination Unreachable identified as Timeout
Using .Net Core 2.1.301 on OSX 10.13.6
SendPingAsync seems to incorrectly report the reason for Ping failure.
var reply = await ping.SendPingAsync(Theip, timeout); if (reply.Status == System.Net.NetworkInformation.IPStatus.Success) { Console.WriteLine("Success:" + Theip); } if (reply.Status == System.Net.NetworkInformation.IPStatus.DestinationHostUnreachable) { Console.WriteLine("Destination host unreachable:" + Theip); } if (reply.Status == System.Net.NetworkInformation.IPStatus.DestinationUnreachable) { Console.WriteLine("Destination unreachable:" + Theip); } if (reply.Status == System.Net.NetworkInformation.IPStatus.TimedOut) //Everything hits here .. { Console.WriteLine("Destination timedout:" + Theip); }
The text was updated successfully, but these errors were encountered:
Issue moved to dotnet/corefx #32238 via ZenHub
Sorry, something went wrong.
No branches or pull requests
Issue Title
ICMP Destination Unreachable identified as Timeout
General
Using .Net Core 2.1.301 on OSX 10.13.6
SendPingAsync seems to incorrectly report the reason for Ping failure.
var reply = await ping.SendPingAsync(Theip, timeout);
if (reply.Status == System.Net.NetworkInformation.IPStatus.Success)
{
Console.WriteLine("Success:" + Theip);
}
if (reply.Status == System.Net.NetworkInformation.IPStatus.DestinationHostUnreachable)
{
Console.WriteLine("Destination host unreachable:" + Theip);
}
if (reply.Status == System.Net.NetworkInformation.IPStatus.DestinationUnreachable)
{
Console.WriteLine("Destination unreachable:" + Theip);
}
if (reply.Status == System.Net.NetworkInformation.IPStatus.TimedOut) //Everything hits here ..
{
Console.WriteLine("Destination timedout:" + Theip);
}
The text was updated successfully, but these errors were encountered: