ReactOS 0.4.15-dev-5667-ged97270
icmpapi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HANDLE WINAPI IcmpCreateFile (VOID)
 
HANDLE WINAPI Icmp6CreateFile (VOID)
 
BOOL WINAPI IcmpCloseHandle (HANDLE IcmpHandle)
 
DWORD WINAPI IcmpSendEcho (HANDLE IcmpHandle, IPAddr DestinationAddress, LPVOID RequestData, WORD RequestSize, PIP_OPTION_INFORMATION RequestOptions, LPVOID ReplyBuffer, DWORD ReplySize, DWORD Timeout)
 
DWORD WINAPI IcmpSendEcho2 (HANDLE IcmpHandle, HANDLE Event, FARPROC ApcRoutine, PVOID ApcContext, IPAddr DestinationAddress, LPVOID RequestData, WORD RequestSize, PIP_OPTION_INFORMATION RequestOptions, LPVOID ReplyBuffer, DWORD ReplySize, DWORD Timeout)
 
DWORD WINAPI Icmp6SendEcho2 (HANDLE IcmpHandle, HANDLE Event, FARPROC ApcRoutine, PVOID ApcContext, struct sockaddr_in6 *SourceAddress, struct sockaddr_in6 *DestinationAddress, LPVOID RequestData, WORD RequestSize, PIP_OPTION_INFORMATION RequestOptions, LPVOID ReplyBuffer, DWORD ReplySize, DWORD Timeout)
 
DWORD WINAPI IcmpParseReplies (LPVOID ReplyBuffer, DWORD ReplySize)
 
DWORD WINAPI Icmp6ParseReplies (LPVOID ReplyBuffer, DWORD ReplySize)
 

Function Documentation

◆ Icmp6CreateFile()

HANDLE WINAPI Icmp6CreateFile ( VOID  )

Definition at line 15 of file icmp.c.

16{
17 HANDLE IcmpFile;
22
27 NULL,
28 NULL);
29
31 &IcmpFile,
35 NULL,
39 0,
40 NULL,
41 0);
42
43 if (!NT_SUCCESS(Status))
44 {
47 }
48
49 return IcmpFile;
50}
LONG NTSTATUS
Definition: precomp.h:26
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:36
#define NULL
Definition: types.h:112
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define SetLastError(x)
Definition: compat.h:752
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:137
#define FILE_SHARE_READ
Definition: compat.h:136
#define FILE_OPEN_IF
Definition: from_kernel.h:56
Status
Definition: gdiplustypes.h:25
#define OBJ_CASE_INSENSITIVE
Definition: winternl.h:228
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
NTSTATUS NTAPI NtCreateFile(OUT PHANDLE FileHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK IoStatusBlock, IN PLARGE_INTEGER AllocationSize OPTIONAL, IN ULONG FileAttributes, IN ULONG ShareAccess, IN ULONG CreateDisposition, IN ULONG CreateOptions, IN PVOID EaBuffer OPTIONAL, IN ULONG EaLength)
#define GENERIC_EXECUTE
Definition: nt_native.h:91
#define L(x)
Definition: ntvdm.h:50
#define RTL_CONSTANT_STRING(s)
Definition: tunneltest.c:14
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
Definition: wdfdevice.h:3275

Referenced by RunTraceRoute(), test_Icmp6CreateFile(), test_IcmpCloseHandle(), and wmain().

◆ Icmp6ParseReplies()

DWORD WINAPI Icmp6ParseReplies ( LPVOID  ReplyBuffer,
DWORD  ReplySize 
)

◆ Icmp6SendEcho2()

DWORD WINAPI Icmp6SendEcho2 ( HANDLE  IcmpHandle,
HANDLE  Event,
FARPROC  ApcRoutine,
PVOID  ApcContext,
struct sockaddr_in6 SourceAddress,
struct sockaddr_in6 DestinationAddress,
LPVOID  RequestData,
WORD  RequestSize,
PIP_OPTION_INFORMATION  RequestOptions,
LPVOID  ReplyBuffer,
DWORD  ReplySize,
DWORD  Timeout 
)

◆ IcmpCloseHandle()

BOOL WINAPI IcmpCloseHandle ( HANDLE  IcmpHandle)

◆ IcmpCreateFile()

HANDLE WINAPI IcmpCreateFile ( VOID  )

Definition at line 219 of file icmp.c.

220{
221 HANDLE IcmpFile;
226
229 &DeviceName,
231 NULL,
232 NULL);
233
235 &IcmpFile,
239 NULL,
243 0,
244 NULL,
245 0);
246
247 if (!NT_SUCCESS(Status))
248 {
251 }
252
253 return IcmpFile;
254}

Referenced by RunTraceRoute(), test_IcmpCloseHandle(), test_IcmpCreateFile(), test_IcmpSendEcho(), and wmain().

◆ IcmpParseReplies()

DWORD WINAPI IcmpParseReplies ( LPVOID  ReplyBuffer,
DWORD  ReplySize 
)

◆ IcmpSendEcho()

DWORD WINAPI IcmpSendEcho ( HANDLE  IcmpHandle,
IPAddr  DestinationAddress,
LPVOID  RequestData,
WORD  RequestSize,
PIP_OPTION_INFORMATION  RequestOptions,
LPVOID  ReplyBuffer,
DWORD  ReplySize,
DWORD  Timeout 
)

◆ IcmpSendEcho2()

DWORD WINAPI IcmpSendEcho2 ( HANDLE  IcmpHandle,
HANDLE  Event,
FARPROC  ApcRoutine,
PVOID  ApcContext,
IPAddr  DestinationAddress,
LPVOID  RequestData,
WORD  RequestSize,
PIP_OPTION_INFORMATION  RequestOptions,
LPVOID  ReplyBuffer,
DWORD  ReplySize,
DWORD  Timeout 
)