Skip to content
New issue

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 #1848

Closed
gserfont opened this issue Aug 10, 2018 · 1 comment
Closed

ICMP Destination Unreachable identified as Timeout #1848

gserfont opened this issue Aug 10, 2018 · 1 comment

Comments

@gserfont
Copy link

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);
}

screen shot 2018-08-10 at 15 31 41

screen shot 2018-08-10 at 15 20 34

screen shot 2018-08-10 at 15 27 59

@Petermarcu
Copy link
Member

Issue moved to dotnet/corefx #32238 via ZenHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants