2 writes to replyBuffer
System (2)
net\System\Net\NetworkInformation\ping.cs (2)
160
replyBuffer
= null;
653
replyBuffer
= SafeLocalFree.LocalAlloc (MaxUdpPacket);
12 references to replyBuffer
System (12)
net\System\Net\NetworkInformation\ping.cs (12)
158
if (
replyBuffer
!= null) {
159
replyBuffer
.Close();
224
SafeLocalFree buffer = ping.
replyBuffer
;
652
if (
replyBuffer
== null) {
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);
728
Icmp6EchoReply icmp6Reply = (Icmp6EchoReply)Marshal.PtrToStructure(
replyBuffer
.DangerousGetHandle(), typeof(Icmp6EchoReply));
729
reply = new PingReply(icmp6Reply,
replyBuffer
.DangerousGetHandle(), sendSize);
732
IcmpEchoReply icmpReply = (IcmpEchoReply)Marshal.PtrToStructure(
replyBuffer
.DangerousGetHandle(), typeof(IcmpEchoReply));
738
GC.KeepAlive(
replyBuffer
);