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