ReactOS  0.4.14-dev-57-g333b8f1
routines.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS TCP/IP protocol driver
4  * FILE: include/routines.h
5  * PURPOSE: Common routine prototypes
6  */
7 
8 #pragma once
9 
11 
13  PNDIS_BUFFER DstBuffer,
14  UINT DstOffset,
15  PCHAR SrcData,
16  UINT Length);
17 
19  PCHAR DstData,
20  PNDIS_BUFFER SrcBuffer,
21  UINT SrcOffset,
22  UINT Length);
23 
25  PCHAR DstData,
26  PNDIS_PACKET SrcPacket,
27  UINT SrcOffset,
28  UINT Length);
29 
31  PNDIS_BUFFER DstBuffer,
32  UINT DstOffset,
33  PNDIS_PACKET SrcPacket,
34  UINT SrcOffset,
35  UINT Length);
36 
39  PCHAR File,
40  UINT Line);
41 
44  UINT Available,
45  UINT Needed);
46 
49  UINT Size);
50 
52  PCHAR Data, UINT Len );
53 
55 
57  UINT Offset,
58  PCHAR *DataOut,
59  PUINT Size );
60 
61 #if DBG
63  PIP_PACKET IPPacket);
64 #define DISPLAY_IP_PACKET(x) DisplayIPPacket(x)
65 VOID DisplayTCPPacket(
66  PIP_PACKET IPPacket);
67 #define DISPLAY_TCP_PACKET(x) DisplayTCPPacket(x)
68 #else
69 #define DISPLAY_IP_PACKET(x)
70 #define DISPLAY_TCP_PACKET(x)
71 #endif /* DBG */
72 
73 /* EOF */
signed char * PCHAR
Definition: retypes.h:7
NDIS_STATUS AllocatePacketWithBuffer(PNDIS_PACKET *NdisPacket, PCHAR Data, UINT Len)
Definition: buffer.c:325
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
Definition: ndis.h:1548
MDL * PNDIS_BUFFER
Definition: ndis.h:343
VOID FreeNdisPacketX(PNDIS_PACKET Packet, PCHAR File, UINT Line)
Definition: routines.c:118
UINT CopyPacketToBuffer(PCHAR DstData, PNDIS_PACKET SrcPacket, UINT SrcOffset, UINT Length)
Definition: buffer.c:171
int NDIS_STATUS
Definition: ntddndis.h:471
_In_ ULONG _In_ ULONG Offset
Definition: ntddpcm.h:101
UINT Random(VOID)
Definition: routines.c:16
PVOID AdjustPacket(PNDIS_PACKET Packet, UINT Available, UINT Needed)
Definition: mockbuffer.c:334
void GetDataPtr(PNDIS_PACKET Packet, UINT Offset, PCHAR *DataOut, PUINT Size)
Definition: routines.c:65
VOID FreeNdisPacket(PNDIS_PACKET Packet)
Definition: buffer.c:358
UINT CopyBufferToBufferChain(PNDIS_BUFFER DstBuffer, UINT DstOffset, PCHAR SrcData, UINT Length)
Definition: buffer.c:55
UINT CopyPacketToBufferChain(PNDIS_BUFFER DstBuffer, UINT DstOffset, PNDIS_PACKET SrcPacket, UINT SrcOffset, UINT Length)
Definition: buffer.c:206
#define Len
Definition: deflate.h:82
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
Definition: ncftp.h:79
UINT CopyBufferChainToBuffer(PCHAR DstData, PNDIS_BUFFER SrcBuffer, UINT SrcOffset, UINT Length)
Definition: buffer.c:112
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
UINT ResizePacket(PNDIS_PACKET Packet, UINT Size)
Definition: buffer.c:289
unsigned int UINT
Definition: ndis.h:50
Definition: ip.h:77
Definition: File.h:15
VOID DisplayIPPacket(PIP_PACKET IPPacket)
Definition: routines.c:59
unsigned int * PUINT
Definition: ndis.h:50