ReactOS  0.4.14-dev-50-g13bb5e2
ipreceive.c
Go to the documentation of this file.
1 #include "../../include/precomp.h"
2 #include "regtests.h"
3 
4 #define MTU 1500
5 
6 struct packet {
7  int size;
8  char data[MTU];
9 };
10 
11 static void RunTest() {
12  const struct packet Packets[] = {
13  { 0 }
14  };
15  int i;
16  IP_INTERFACE IF;
17  IP_PACKET IPPacket;
19 
20  /* Init interface */
21 
22  /* Init packet */
23 
24  for( i = 0; NT_SUCCESS(Status) && i < Packets[i].size; i++ ) {
25  IPPacket.Header = (PUCHAR)Packets[i].data;
26  IPPacket.TotalSize = Packets[i].size;
27  IPReceive( &IF, &IPPacket );
28  }
29  _AssertEqualValue(STATUS_SUCCESS, Status);
30 }
31 
32 _Dispatcher(IPReceiveTest, "IPReceive");
_Dispatcher(IPReceiveTest, "IPReceive")
static void RunTest()
Definition: ipreceive.c:11
unsigned char * PUCHAR
Definition: retypes.h:3
LONG NTSTATUS
Definition: precomp.h:26
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
PVOID Header
Definition: ip.h:83
#define MTU
Definition: ipreceive.c:4
Definition: dhcpd.h:135
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
UINT TotalSize
Definition: ip.h:86
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
int size
Definition: ipreceive.c:7
Status
Definition: gdiplustypes.h:24
VOID IPReceive(PIP_INTERFACE IF, PIP_PACKET IPPacket)
Definition: receive.c:638
Definition: ip.h:77
return STATUS_SUCCESS
Definition: btrfs.c:2966