ReactOS 0.4.16-dev-297-gc569aee
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
58 PCHAR *DataOut,
59 PUINT Size );
60
61#if DBG
63 PIP_PACKET IPPacket);
64#define DISPLAY_IP_PACKET(x) DisplayIPPacket(x)
65VOID 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 */
Definition: File.h:16
#define Len
Definition: deflate.h:82
#define AllocatePacketWithBuffer(x, y, z)
Definition: memtrack.h:7
#define FreeNdisPacket(x)
Definition: memtrack.h:8
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
Definition: ndis.h:1549
unsigned int * PUINT
Definition: ndis.h:50
unsigned int UINT
Definition: ndis.h:50
MDL * PNDIS_BUFFER
Definition: ndis.h:343
int NDIS_STATUS
Definition: ntddndis.h:475
_In_ ULONG _In_ ULONG Offset
Definition: ntddpcm.h:101
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
UINT CopyBufferToBufferChain(PNDIS_BUFFER DstBuffer, UINT DstOffset, PCHAR SrcData, UINT Length)
Definition: buffer.c:56
void GetDataPtr(PNDIS_PACKET Packet, UINT Offset, PCHAR *DataOut, PUINT Size)
Definition: routines.c:65
UINT CopyPacketToBuffer(PCHAR DstData, PNDIS_PACKET SrcPacket, UINT SrcOffset, UINT Length)
Definition: buffer.c:172
UINT CopyBufferChainToBuffer(PCHAR DstData, PNDIS_BUFFER SrcBuffer, UINT SrcOffset, UINT Length)
Definition: buffer.c:113
UINT CopyPacketToBufferChain(PNDIS_BUFFER DstBuffer, UINT DstOffset, PNDIS_PACKET SrcPacket, UINT SrcOffset, UINT Length)
Definition: buffer.c:208
UINT Random(VOID)
Definition: routines.c:16
UINT ResizePacket(PNDIS_PACKET Packet, UINT Size)
Definition: buffer.c:290
PVOID AdjustPacket(PNDIS_PACKET Packet, UINT Available, UINT Needed)
Definition: mockbuffer.c:334
VOID FreeNdisPacketX(PNDIS_PACKET Packet, PCHAR File, UINT Line)
Definition: routines.c:118
Definition: ncftp.h:79
Definition: ip.h:77
VOID DisplayIPPacket(PIP_PACKET IPPacket)
Definition: routines.c:59
char * PCHAR
Definition: typedefs.h:51
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533