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

Testapp.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 Testapp.c.


Function Documentation

int main  
 

Definition at line 49 of file Testapp.c.

References 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 227 of file Testapp.c.

References bpf_hdr::bh_caplen, bpf_hdr::bh_datalen, bpf_hdr::bh_hdrlen, _PACKET::Buffer, Packet_WORDALIGN, and _PACKET::ulBytesReceived.


Variable Documentation

char AdapterList[Max_Num_Adapter][1024]
 

Definition at line 47 of file Testapp.c.


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