Main Page   Modules   Data Structures   File List   Data Fields   Globals  

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


Function Documentation

int main  
 

Definition at line 37 of file Testapp.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 215 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 35 of file Testapp.c.

Referenced by main.


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