AirPcap Sample Programs Library
How to Compile the Sample
Programs
How to Run the Sample Programs
Sample Programs list
The AirPcap developer's pack contains a complete set of sample programs. They are ideal to use as starting points for application development or simply to familiarize yourself with the AirPcap API.
Each sample program has its own folder, containing:
Microsoft Visual Studio
GCC/cygwin
Microsoft Visual Studio
GCC/cygwin
The following is the list of the standard sample programs provided in the CFDX developer's pack:
airpcap_and_libpcap
This example shows how to use AirPcap and libpcap at the same time to
set the wireless adapter parameters and then receive and print the wireless
packets.
The program needs files from both the AirPcap and WinPcap developer's pack,
and ASSUMES THAT THE TWO DEVELOPER'S PACKS ARE UNPACKED IN THE SAME FOLDER.
SetChannel
This program sets the channel the specified AirPcap adapter is listening
on, and saves it as the default channel for that adapter. In this way,
successive accesses to the adapter will use this channel.
GetMacAddress
This program open an adapter, retrieves its mac address, and prints it
on the screen.
Capture_no_radio
This program is a reference of how to use the AirPcap API to receive
802.11 packets with no radio information.
Note that the suggested method to receive packets is using WinPcap, as shown
in the "airpcap_and_libpcap" sample program.
After opening the adapter specified by the user, this program sets it to
receive bare 802.11 packets (no radiotap header), and then loops capturing
packets, interpreting them, and printing them to the console.
Capture_radio
This program is a reference of how to use the AirPcap API to receive
802.11 packets radiotap-encoded radio information.
Note that the suggested method to receive packets is using WinPcap, as shown
in the "airpcap_and_libpcap" sample program.
After opening the adapter specified by the user, this program sets it to
receive 802.11 packets with radio information (radiotap header), and then
loops capturing packets, interpreting them, and printing them to the
console.
AirpcapConf
This is the source code of the AirPcap Control Panel application
installed together with the AirPcap adapters. It can be used as a complete
reference for the AirPcap API, including setting the adapter properties and
configuring the WEP keys.
CACE Technologies AirPcap documentation. Copyright (c) 2006 CACE Technologies, LLC. All rights reserved.