Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Read.c File Reference

#include <stdarg.h>
#include "ntddk.h"
#include <ntiologc.h>
#include <ndis.h>
#include "debug.h"
#include "packet.h"
#include "win_bpf.h"
#include "tme.h"
#include "time_calls.h"

Go to the source code of this file.

Functions

UINT GetBuffOccupation (POPEN_INSTANCE Open)
 Returns the amount of bytes present in the packet buffer. More...

void PacketMoveMem (PVOID Destination, PVOID Source, ULONG Length, UINT *Bhead)
NTSTATUS NPF_Read (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 Function that serves the user's reads. More...

NDIS_STATUS NPF_tap (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_HANDLE MacReceiveContext, IN PVOID HeaderBuffer, IN UINT HeaderBufferSize, IN PVOID LookAheadBuffer, IN UINT LookaheadBufferSize, IN UINT PacketSize)
 Callback invoked by NDIS when a packet arrives from the network. More...

VOID NPF_TransferDataComplete (IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_PACKET pPacket, IN NDIS_STATUS Status, IN UINT BytesTransfered)
 Ends the transfer of a packet. More...

VOID NPF_ReceiveComplete (IN NDIS_HANDLE ProtocolBindingContext)
 Callback function that signals the end of a packet reception. More...


Variables

time_conv G_Start_Time
 Global start time. Used as an absolute reference for timestamp conversion. More...


Function Documentation

void PacketMoveMem PVOID    Destination,
PVOID    Source,
ULONG    Length,
UINT *    Bhead
 

Definition at line 53 of file Read.c.

Referenced by NPF_Read.


Variable Documentation

struct time_conv G_Start_Time
 

Global start time. Used as an absolute reference for timestamp conversion.

Definition at line 33 of file Read.c.

Referenced by NPF_Read, and NPF_tap.


documentation. Copyright (c) 2002 Politecnico di Torino. All rights reserved.