1 instantiation of IcmpHeader
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
54
CreateSendMessageBuffer(iph, new
IcmpHeader
()
10 references to IcmpHeader
System.Net.Ping (10)
System\Net\NetworkInformation\Ping.RawSocket.cs (10)
38
totalLength = sizeof(IpHeader) + checked(sizeof(
IcmpHeader
) + buffer.Length);
148
IcmpHeader
receivedHeader = MemoryMarshal.Read<
IcmpHeader
>(receiveBuffer.AsSpan(icmpHeaderOffset));
183
IcmpHeader
originalRequestHeader = MemoryMarshal.Read<
IcmpHeader
>(receiveBuffer.AsSpan(dataOffset + payloadIpHeaderLength));
216
IcmpHeader
originalRequestHeader = MemoryMarshal.Read<
IcmpHeader
>(receiveBuffer.AsSpan(dataOffset + IpV6HeaderLengthInBytes));
397
Debug.Assert(Marshal.SizeOf<
IcmpHeader
>() == 8, "The size of an ICMP Header must be 8 bytes.");
455
private static unsafe byte[] CreateSendMessageBuffer(IpHeader ipHeader,
IcmpHeader
icmpHeader, byte[] payload, int totalLength = 0)
457
int icmpHeaderSize = sizeof(
IcmpHeader
);