Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenudp.h
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS TCP/IP protocol driver 00004 * FILE: include/udp.h 00005 * PURPOSE: User Datagram Protocol definitions 00006 */ 00007 00008 #pragma once 00009 00010 #define UDP_STARTING_PORT 0x8000 00011 #define UDP_DYNAMIC_PORTS 0x8000 00012 00013 /* UDPv4 header structure */ 00014 #include <pshpack1.h> 00015 typedef struct UDP_HEADER { 00016 USHORT SourcePort; /* Source port */ 00017 USHORT DestPort; /* Destination port */ 00018 USHORT Length; /* Size of header and data */ 00019 USHORT Checksum; /* Checksum of datagram */ 00020 } UDP_HEADER, *PUDP_HEADER; 00021 00022 /* UDPv4 pseudo header */ 00023 typedef struct UDP_PSEUDO_HEADER { 00024 ULONG SourceAddress; /* Source address */ 00025 ULONG DestAddress; /* Destination address */ 00026 UCHAR Zero; /* Reserved */ 00027 UCHAR Protocol; /* Protocol */ 00028 USHORT UDPLength; /* Size of UDP datagram */ 00029 } UDP_PSEUDO_HEADER, *PUDP_PSEUDO_HEADER; 00030 #include <poppack.h> 00031 00032 typedef struct UDP_STATISTICS { 00033 ULONG InputDatagrams; 00034 ULONG NumPorts; 00035 ULONG InputErrors; 00036 ULONG OutputDatagrams; 00037 ULONG NumAddresses; 00038 } UDP_STATISTICS, *PUDP_STATISTICS; 00039 00040 extern UDP_STATISTICS UDPStats; 00041 00042 VOID UDPSend( 00043 PVOID Context, 00044 PDATAGRAM_SEND_REQUEST SendRequest); 00045 00046 NTSTATUS UDPSendDatagram( 00047 PADDRESS_FILE AddrFile, 00048 PTDI_CONNECTION_INFORMATION ConnInfo, 00049 PCHAR BufferData, 00050 ULONG DataSize, 00051 PULONG DataUsed ); 00052 00053 VOID UDPReceive( 00054 PIP_INTERFACE Interface, 00055 PIP_PACKET IPPacket); 00056 00057 NTSTATUS UDPStartup( 00058 VOID); 00059 00060 NTSTATUS UDPShutdown( 00061 VOID); 00062 UINT UDPAllocatePort( UINT HintPort ); 00063 VOID UDPFreePort( UINT Port ); 00064 00065 /* EOF */ Generated on Sat May 26 2012 04:26:40 for ReactOS by
1.7.6.1
|