11 references to IcmpHeaderLengthInBytes
System.Net.Ping (11)
System\Net\NetworkInformation\Ping.RawSocket.cs (11)
138if (bytesReceived - ipHeaderLength < IcmpHeaderLengthInBytes) 145int dataOffset = ipHeaderLength + IcmpHeaderLengthInBytes; 170if (dataOffset + MinIpHeaderLengthInBytes + IcmpHeaderLengthInBytes > bytesReceived) 178if (bytesReceived - dataOffset - payloadIpHeaderLength < IcmpHeaderLengthInBytes) 189dataOffset += payloadIpHeaderLength + IcmpHeaderLengthInBytes; 211if (bytesReceived - dataOffset < IpV6HeaderLengthInBytes + IcmpHeaderLengthInBytes) 222dataOffset += IpV6HeaderLengthInBytes + IcmpHeaderLengthInBytes; 260byte[] receiveBuffer = new byte[2 * (MaxIpHeaderLengthInBytes + IcmpHeaderLengthInBytes) + buffer.Length]; 270if (bytesReceived - ipHeaderLength < IcmpHeaderLengthInBytes) 339byte[] receiveBuffer = new byte[2 * (MaxIpHeaderLengthInBytes + IcmpHeaderLengthInBytes) + buffer.Length]; 355if (bytesReceived - ipHeaderLength < IcmpHeaderLengthInBytes)