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