Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

PACKET32.H File Reference

#include <winsock2.h>
#include "devioctl.h"

Go to the source code of this file.

Classes

struct  _ADAPTER
 Describes a network adapter. More...
struct  _PACKET_OID_DATA
 Structure containing an OID request. More...

Defines

#define PACKET_MODE_CAPT   0x0
 Capture mode.
#define PACKET_MODE_STAT   0x1
 Statistical mode.
#define PACKET_MODE_DUMP   0x10
 Dump mode.
#define PACKET_MODE_STAT_DUMP   MODE_DUMP | MODE_STAT
 Statistical dump Mode.
#define FILE_DEVICE_PROTOCOL   0x8000
#define IOCTL_PROTOCOL_STATISTICS   CTL_CODE(FILE_DEVICE_PROTOCOL, 2 , METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PROTOCOL_RESET   CTL_CODE(FILE_DEVICE_PROTOCOL, 3 , METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PROTOCOL_READ   CTL_CODE(FILE_DEVICE_PROTOCOL, 4 , METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PROTOCOL_WRITE   CTL_CODE(FILE_DEVICE_PROTOCOL, 5 , METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PROTOCOL_MACNAME   CTL_CODE(FILE_DEVICE_PROTOCOL, 6 , METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_OPEN   CTL_CODE(FILE_DEVICE_PROTOCOL, 7 , METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_CLOSE   CTL_CODE(FILE_DEVICE_PROTOCOL, 8 , METHOD_BUFFERED, FILE_ANY_ACCESS)
#define pBIOCSETBUFFERSIZE   9592
#define pBIOCSETF   9030
#define pBIOCGSTATS   9031
#define pBIOCSRTIMEOUT   7416
#define pBIOCSMODE   7412
#define pBIOCSWRITEREP   7413
#define pBIOCSMINTOCOPY   7414
#define pBIOCSETOID   2147483648
#define pBIOCQUERYOID   2147483652
#define pATTACHPROCESS   7117
#define pDETACHPROCESS   7118
#define pBIOCSETDUMPFILENAME   9029
#define pBIOCEVNAME   7415
#define pBIOCSTIMEZONE   7471
#define Packet_ALIGNMENT   sizeof(int)
#define Packet_WORDALIGN(x)   (((x)+(Packet_ALIGNMENT-1))&~(Packet_ALIGNMENT-1))
#define DOSNAMEPREFIX   TEXT("Packet_")
#define MAX_LINK_NAME_LENGTH   64
#define NMAX_PACKET   65535

Typedefs

typedef NetType NetType
 Network type structure.
typedef _ADAPTER ADAPTER
 Describes a network adapter.
typedef _ADAPTERLPADAPTER
 Describes a network adapter.
typedef _PACKET PACKET
 Structure that contains a group of packets coming from the driver.
typedef _PACKETLPPACKET
 Structure that contains a group of packets coming from the driver.
typedef _PACKET_OID_DATA PACKET_OID_DATA
typedef _PACKET_OID_DATAPPACKET_OID_DATA
typedef npf_if_addr npf_if_addr
 Addresses of a network adapter.

Functions

PCHAR PacketGetVersion ()
BOOLEAN PacketSetMinToCopy (LPADAPTER AdapterObject, int nbytes)
BOOLEAN PacketSetNumWrites (LPADAPTER AdapterObject, int nwrites)
BOOLEAN PacketSetMode (LPADAPTER AdapterObject, int mode)
BOOLEAN PacketSetReadTimeout (LPADAPTER AdapterObject, int timeout)
BOOLEAN PacketSetBpf (LPADAPTER AdapterObject, struct bpf_program *fp)
BOOLEAN PacketGetStats (LPADAPTER AdapterObject, struct bpf_stat *s)
BOOLEAN PacketSetBuff (LPADAPTER AdapterObject, int dim)
BOOLEAN PacketGetNetType (LPADAPTER AdapterObject, NetType *type)
LPADAPTER PacketOpenAdapter (LPTSTR AdapterName)
BOOLEAN PacketSendPacket (LPADAPTER AdapterObject, LPPACKET pPacket, BOOLEAN Sync)
LPPACKET PacketAllocatePacket (void)
VOID PacketInitPacket (LPPACKET lpPacket, PVOID Buffer, UINT Length)
VOID PacketFreePacket (LPPACKET lpPacket)
BOOLEAN PacketReceivePacket (LPADAPTER AdapterObject, LPPACKET lpPacket, BOOLEAN Sync)
BOOLEAN PacketSetHwFilter (LPADAPTER AdapterObject, ULONG Filter)
BOOLEAN PacketGetAdapterNames (PTSTR pStr, PULONG BufferSize)
BOOLEAN PacketGetNetInfo (LPTSTR AdapterName, PULONG netp, PULONG maskp)
BOOLEAN PacketGetNetInfoEx (LPTSTR AdapterName, npf_if_addr *buffer, PLONG NEntries)
BOOLEAN PacketRequest (LPADAPTER AdapterObject, BOOLEAN Set, PPACKET_OID_DATA OidData)
HANDLE PacketGetReadEvent (LPADAPTER AdapterObject)
BOOLEAN PacketSetDumpName (LPADAPTER AdapterObject, void *name, int len)
BOOL PacketStopDriver ()
VOID PacketCloseAdapter (LPADAPTER lpAdapter)


Generated on Sun May 14 14:51:28 2006 by  doxygen 1.4.2