2 writes to requestBuffer
System (2)
net\System\Net\NetworkInformation\ping.cs (2)
755
requestBuffer
= SafeLocalFree.LocalAlloc(buffer.Length);
767
requestBuffer
= null;
7 references to requestBuffer
System (7)
net\System\Net\NetworkInformation\ping.cs (7)
675
error = (int)UnsafeNetInfoNativeMethods.IcmpSendEcho2 (handlePingV4, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, (uint)address.m_Address,
requestBuffer
, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
678
error = (int)UnsafeNetInfoNativeMethods.IcmpSendEcho2 (handlePingV4, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, (uint)address.m_Address,
requestBuffer
, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
686
error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.m_Buffer,
requestBuffer
, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
689
error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.m_Buffer,
requestBuffer
, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
756
byte* dst = (byte*)
requestBuffer
.DangerousGetHandle();
765
if (
requestBuffer
!= null) {
766
requestBuffer
.Close();