#include "stdarg.h"
#include "ntddk.h"
#include "ntiologc.h"
#include "ndis.h"
#include "debug.h"
#include "packet.h"
Go to the source code of this file.
Functions | |
NTSTATUS | NPF_Write (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) |
Writes a raw packet to the network. | |
INT | NPF_BufferedWrite (IN PIRP Irp, IN PCHAR UserBuff, IN ULONG UserBuffSize, BOOLEAN Sync) |
Writes a buffer of raw packets to the network. | |
VOID | NPF_WaitEndOfBufferedWrite (POPEN_INSTANCE Open) |
Waits the completion of all the sends performed by NPF_BufferedWrite. | |
VOID | NPF_SendComplete (IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_PACKET pPacket, IN NDIS_STATUS Status) |
Ends a send operation. |
|
Writes a buffer of raw packets to the network.
Definition at line 156 of file Write.c. References _OPEN_INSTANCE::AdapterHandle, _OPEN_INSTANCE::Bound, sf_pkthdr::caplen, _OPEN_INSTANCE::MaxFrameSize, _OPEN_INSTANCE::Multiple_Write_Counter, NPF_SendComplete(), NPF_WaitEndOfBufferedWrite(), _OPEN_INSTANCE::PacketPool, RESERVED, sf_pkthdr::ts, and _OPEN_INSTANCE::WriteEvent. Referenced by NPF_IoControl(). |
|
Ends a send operation.
Definition at line 367 of file Write.c. References _OPEN_INSTANCE::Multiple_Write_Counter, _OPEN_INSTANCE::Nwrites, RESERVED, _OPEN_INSTANCE::WriteEvent, _OPEN_INSTANCE::WriteInProgress, and _OPEN_INSTANCE::WriteLock. Referenced by DriverEntry(), NPF_BufferedWrite(), and NPF_Write(). |
|
Waits the completion of all the sends performed by NPF_BufferedWrite.
Definition at line 349 of file Write.c. References _OPEN_INSTANCE::Multiple_Write_Counter, TRANSMIT_PACKETS, and _OPEN_INSTANCE::WriteEvent. Referenced by NPF_BufferedWrite(). |
|
Writes a raw packet to the network.
Definition at line 45 of file Write.c. References _OPEN_INSTANCE::AdapterHandle, _OPEN_INSTANCE::Bound, EXIT_FAILURE, _OPEN_INSTANCE::MaxFrameSize, _OPEN_INSTANCE::Multiple_Write_Counter, NPF_SendComplete(), _OPEN_INSTANCE::Nwrites, _OPEN_INSTANCE::PacketPool, RESERVED, _OPEN_INSTANCE::WriteEvent, _OPEN_INSTANCE::WriteInProgress, and _OPEN_INSTANCE::WriteLock. Referenced by DriverEntry(). |
documentation. Copyright (c) 2002-2003 Politecnico di Torino. All rights reserved.