1 /* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS TCP/IP protocol driver 4 * FILE: include/rawip.h 5 * PURPOSE: Raw IP types and constants 6 */ 7 8 #pragma once 9 10 NTSTATUS RawIPSendDatagram( 11 PADDRESS_FILE AddrFile, 12 PTDI_CONNECTION_INFORMATION ConnInfo, 13 PCHAR Buffer, 14 ULONG DataSize, 15 PULONG DataUsed); 16 17 VOID RawIpReceive( 18 PIP_INTERFACE Interface, 19 PIP_PACKET IPPacket); 20 21 NTSTATUS RawIPStartup( 22 VOID); 23 24 NTSTATUS RawIPShutdown( 25 VOID); 26 27 NTSTATUS AddGenericHeaderIPv4( 28 PADDRESS_FILE AddrFile, 29 PIP_ADDRESS RemoteAddress, 30 USHORT RemotePort, 31 PIP_ADDRESS LocalAddress, 32 USHORT LocalPort, 33 PIP_PACKET IPPacket, 34 UINT DataLength, 35 UINT Protocol, 36 UINT ExtraLength, 37 PVOID *NextHeader ); 38 39 NTSTATUS BuildRawIpPacket( 40 PADDRESS_FILE AddrFile, 41 PIP_PACKET Packet, 42 PIP_ADDRESS RemoteAddress, 43 USHORT RemotePort, 44 PIP_ADDRESS LocalAddress, 45 USHORT LocalPort, 46 PCHAR DataBuffer, 47 UINT DataLen); 48 49 /* EOF */ 50