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