42 references to IPStatus
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Devices\Network.Ping.vb (1)
81
If reply.Status = NetInfoAlias.
IPStatus
.Success Then
netstandard (1)
netstandard.cs (1)
1202
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.NetworkInformation.
IPStatus
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
691
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.NetworkInformation.
IPStatus
))]
System.Net.Ping (39)
System\Net\NetworkInformation\IcmpV4MessageConstants.cs (11)
54
public static
IPStatus
MapV4TypeToIPStatus(int type, int code)
58
IcmpV4MessageType.EchoReply =>
IPStatus
.Success,
61
IcmpV4DestinationUnreachableCode.DestinationNetworkUnreachable =>
IPStatus
.DestinationNetworkUnreachable,
62
IcmpV4DestinationUnreachableCode.DestinationHostUnreachable =>
IPStatus
.DestinationHostUnreachable,
63
IcmpV4DestinationUnreachableCode.DestinationProtocolUnreachable =>
IPStatus
.DestinationProtocolUnreachable,
64
IcmpV4DestinationUnreachableCode.DestinationPortUnreachable =>
IPStatus
.DestinationPortUnreachable,
65
_ =>
IPStatus
.DestinationUnreachable,
67
IcmpV4MessageType.SourceQuench =>
IPStatus
.SourceQuench,
68
IcmpV4MessageType.TimeExceeded =>
IPStatus
.TtlExpired,
69
IcmpV4MessageType.ParameterProblemBadIPHeader =>
IPStatus
.BadHeader,
70
_ =>
IPStatus
.Unknown,
System\Net\NetworkInformation\IcmpV6MessageConstants.cs (13)
55
public static
IPStatus
MapV6TypeToIPStatus(byte type, byte code)
59
IcmpV6MessageType.EchoReply =>
IPStatus
.Success,
62
IcmpV6DestinationUnreachableCode.NoRouteToDestination =>
IPStatus
.BadRoute,
63
IcmpV6DestinationUnreachableCode.SourceRoutingHeaderError =>
IPStatus
.BadHeader,
64
_ =>
IPStatus
.DestinationUnreachable,
66
IcmpV6MessageType.PacketTooBig =>
IPStatus
.PacketTooBig,
69
IcmpV6TimeExceededCode.FragmentReassemblyTimeExceeded =>
IPStatus
.TtlReassemblyTimeExceeded,
70
_ =>
IPStatus
.TtlExpired,
74
IcmpV6ParameterProblemCode.ErroneousHeaderField =>
IPStatus
.BadHeader,
75
IcmpV6ParameterProblemCode.UnrecognizedNextHeader =>
IPStatus
.UnrecognizedNextHeader,
76
IcmpV6ParameterProblemCode.UnrecognizedIpv6Option =>
IPStatus
.BadOption,
77
_ =>
IPStatus
.ParameterProblem,
79
_ =>
IPStatus
.Unknown,
System\Net\NetworkInformation\Ping.PingUtility.cs (5)
58
return CreatePingReply(
IPStatus
.TimedOut);
99
return CreatePingReply(
IPStatus
.TimedOut);
120
return CreatePingReply(
IPStatus
.TimedOut);
125
return CreatePingReply(
IPStatus
.Success, address, rtt);
149
reply = CreatePingReply(
IPStatus
.TimeExceeded, address);
System\Net\NetworkInformation\Ping.RawSocket.cs (8)
241
IPStatus
status = socketConfig.IsIpv4
286
return CreatePingReply(
IPStatus
.PacketTooBig);
296
return CreatePingReply(
IPStatus
.TimedOut);
316
return CreatePingReply(
IPStatus
.TtlExpired, IPEndPointExtensions.GetIPAddress(socketAddress.Slice(0, header.SocketAddressLen)));
319
return CreatePingReply(
IPStatus
.TimedOut);
371
return CreatePingReply(
IPStatus
.PacketTooBig);
384
return CreatePingReply(
IPStatus
.TimedOut);
387
private static PingReply CreatePingReply(
IPStatus
status, IPAddress? address = null, long rtt = 0)
System\Net\NetworkInformation\PingReply.cs (2)
11
IPStatus
ipStatus,
22
public
IPStatus
Status { get; }