Skip to content

ICMP Destination Unreachable identified as Timeout #1848

Closed

Description

@gserfont

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

Activity

  1. Petermarcu commented on Sep 11, 2018

    @Petermarcu
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions