- Fix a race condition that occurs when an IRP gets cancelled after it is inserted...
[reactos.git] / reactos / drivers / network / tcpip / include / datagram.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
4 * FILE: include/datagram.h
5 * PURPOSE: Datagram types and constants
6 */
7 #ifndef __DATAGRAM_H
8 #define __DATAGRAM_H
9
10 #include <titypes.h>
11
12 NTSTATUS DGReceiveDatagram(
13 PADDRESS_FILE AddrFile,
14 PTDI_CONNECTION_INFORMATION ConnInfo,
15 PCHAR Buffer,
16 ULONG ReceiveLength,
17 ULONG ReceiveFlags,
18 PTDI_CONNECTION_INFORMATION ReturnInfo,
19 PULONG BytesReceived,
20 PDATAGRAM_COMPLETION_ROUTINE Complete,
21 PVOID Context,
22 PIRP Irp);
23
24 BOOLEAN DGRemoveIRP(
25 PADDRESS_FILE AddrFile,
26 PIRP Irp);
27
28 VOID DGDeliverData(
29 PADDRESS_FILE AddrFile,
30 PIP_ADDRESS SrcAddress,
31 PIP_ADDRESS DstAddress,
32 USHORT SrcPort,
33 USHORT DstPort,
34 PIP_PACKET IPPacket,
35 UINT DataSize);
36
37 #endif /* __DATAGRAM_H */
38
39 /* EOF */