13 references to IcmpV4MessageType
System.Net.Ping (13)
System\Net\NetworkInformation\IcmpV4MessageConstants.cs (6)
56
return (
IcmpV4MessageType
)type switch
58
IcmpV4MessageType
.EchoReply => IPStatus.Success,
59
IcmpV4MessageType
.DestinationUnreachable => (IcmpV4DestinationUnreachableCode)code switch
67
IcmpV4MessageType
.SourceQuench => IPStatus.SourceQuench,
68
IcmpV4MessageType
.TimeExceeded => IPStatus.TtlExpired,
69
IcmpV4MessageType
.ParameterProblemBadIPHeader => IPStatus.BadHeader,
System\Net\NetworkInformation\Ping.RawSocket.cs (7)
56
Type = ipv4 ? (byte)
IcmpV4MessageType
.EchoRequest : (byte)IcmpV6MessageType.EchoRequest,
156
if (type == (byte)
IcmpV4MessageType
.EchoReply)
161
else if (type == (byte)
IcmpV4MessageType
.DestinationUnreachable ||
162
type == (byte)
IcmpV4MessageType
.TimeExceeded ||
163
type == (byte)
IcmpV4MessageType
.ParameterProblemBadIPHeader ||
164
type == (byte)
IcmpV4MessageType
.SourceQuench ||
165
type == (byte)
IcmpV4MessageType
.RedirectMessage)