ReactOS
0.4.16-dev-92-g0c2cdca
transmit.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/transmit.h
5
* PURPOSE: Internet Protocol transmit prototypes
6
*/
7
8
#pragma once
9
10
typedef
VOID
(*
PIP_TRANSMIT_COMPLETE
)(
PVOID
Context
,
11
PNDIS_PACKET
Packet
,
12
NDIS_STATUS
Status
);
13
14
/* IP fragment context information */
15
typedef
struct
IPFRAGMENT_CONTEXT
{
16
struct
IPFRAGMENT_CONTEXT
*
Next
;
/* Pointer to next in list */
17
PNDIS_PACKET
Datagram
;
/* Pointer to original NDIS packet */
18
PVOID
DatagramData
;
/* Pointer to datagram data */
19
UINT
HeaderSize
;
/* IP datagram header size */
20
PNDIS_PACKET
NdisPacket
;
/* Pointer to NDIS packet */
21
PNDIS_BUFFER
NdisBuffer
;
/* Pointer to NDIS buffer */
22
PVOID
Header
;
/* Pointer to IP header in fragment buffer */
23
PVOID
Data
;
/* Pointer to fragment data */
24
UINT
Position
;
/* Current fragment offset */
25
UINT
BytesLeft
;
/* Number of bytes left to send */
26
UINT
PathMTU
;
/* Path Maximum Transmission Unit */
27
PNEIGHBOR_CACHE_ENTRY
NCE
;
/* Pointer to NCE to use */
28
KEVENT
Event
;
/* Signalled when the transmission is complete */
29
NDIS_STATUS
Status
;
/* Status of the transmission */
30
}
IPFRAGMENT_CONTEXT
, *
PIPFRAGMENT_CONTEXT
;
31
32
33
NTSTATUS
IPSendDatagram
(
PIP_PACKET
IPPacket,
PNEIGHBOR_CACHE_ENTRY
NCE
);
34
35
/* EOF */
VOID
#define VOID
Definition:
acefi.h:82
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
Status
Status
Definition:
gdiplustypes.h:25
void
Definition:
nsiface.idl:2307
Packet
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
Definition:
ndis.h:1549
UINT
unsigned int UINT
Definition:
ndis.h:50
PNDIS_BUFFER
MDL * PNDIS_BUFFER
Definition:
ndis.h:343
NDIS_STATUS
int NDIS_STATUS
Definition:
ntddndis.h:475
Context
Definition:
compobj.c:4795
IPFRAGMENT_CONTEXT
Definition:
transmit.h:15
IPFRAGMENT_CONTEXT::Event
KEVENT Event
Definition:
transmit.h:28
IPFRAGMENT_CONTEXT::NdisPacket
PNDIS_PACKET NdisPacket
Definition:
transmit.h:20
IPFRAGMENT_CONTEXT::Data
PVOID Data
Definition:
transmit.h:23
IPFRAGMENT_CONTEXT::PathMTU
UINT PathMTU
Definition:
transmit.h:26
IPFRAGMENT_CONTEXT::Datagram
PNDIS_PACKET Datagram
Definition:
transmit.h:17
IPFRAGMENT_CONTEXT::BytesLeft
UINT BytesLeft
Definition:
transmit.h:25
IPFRAGMENT_CONTEXT::NCE
PNEIGHBOR_CACHE_ENTRY NCE
Definition:
transmit.h:27
IPFRAGMENT_CONTEXT::Status
NDIS_STATUS Status
Definition:
transmit.h:29
IPFRAGMENT_CONTEXT::HeaderSize
UINT HeaderSize
Definition:
transmit.h:19
IPFRAGMENT_CONTEXT::Position
UINT Position
Definition:
transmit.h:24
IPFRAGMENT_CONTEXT::Header
PVOID Header
Definition:
transmit.h:22
IPFRAGMENT_CONTEXT::NdisBuffer
PNDIS_BUFFER NdisBuffer
Definition:
transmit.h:21
IPFRAGMENT_CONTEXT::DatagramData
PVOID DatagramData
Definition:
transmit.h:18
IPFRAGMENT_CONTEXT::Next
struct IPFRAGMENT_CONTEXT * Next
Definition:
transmit.h:16
NEIGHBOR_CACHE_ENTRY
Definition:
neighbor.h:28
_IP_PACKET
Definition:
ip.h:77
_KEVENT
Definition:
ketypes.h:811
_NDIS_PACKET
Definition:
ndis.h:734
PIP_TRANSMIT_COMPLETE
VOID(* PIP_TRANSMIT_COMPLETE)(PVOID Context, PNDIS_PACKET Packet, NDIS_STATUS Status)
Definition:
transmit.h:10
IPSendDatagram
NTSTATUS IPSendDatagram(PIP_PACKET IPPacket, PNEIGHBOR_CACHE_ENTRY NCE)
Definition:
transmit.c:223
PIPFRAGMENT_CONTEXT
struct IPFRAGMENT_CONTEXT * PIPFRAGMENT_CONTEXT
drivers
network
tcpip
include
transmit.h
Generated on Mon Oct 7 2024 06:07:55 for ReactOS by
1.9.6