Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

# TestPacketCapture.c File Reference

`#include <stdio.h>`
`#include <conio.h>`
`#include "..\..\..\Include\packet32.h"`
`#include "..\..\..\Include\ntddndis.h"`

Go to the source code of this file.

## Defines
#define | Max_Num_Adapter 10
## Functions
void | PrintPackets (LPPACKET lpPacket)
int | main ()
## Variables
char | AdapterList [Max_Num_Adapter][1024]

## Define Documentation

#define Max_Num_Adapter 10

| Definition at line 41 of file TestPacketCapture.c.

## Function Documentation

int main | ( |  | ) |

| Definition at line 49 of file TestPacketCapture.c. References AdapterList, bpf_stat::bs_drop, bpf_stat::bs_recv, _ADAPTER::hFile, PacketAllocatePacket(), PacketCloseAdapter(), PacketFreePacket(), PacketGetAdapterNames(), PacketGetStats(), PacketGetVersion(), PacketInitPacket(), PacketOpenAdapter(), PacketReceivePacket(), PacketSetBuff(), PacketSetHwFilter(), PacketSetReadTimeout(), and PrintPackets().

void PrintPackets | ( | LPPACKET | lpPacket | ) |

| Definition at line 183 of file TestPacketCapture.c. References _PACKET::Buffer, Packet_WORDALIGN, and _PACKET::ulBytesReceived.

## Variable Documentation

char AdapterList[Max_Num_Adapter][1024]

| Definition at line 47 of file TestPacketCapture.c. Referenced by main().

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