This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Hello, and welcome to this brief, but hopefully complete, example file for | |
* wireless packet injection using pcap. | |
* | |
* Although there are various resources for this spread on the web, it is hard | |
* to find a single, cohesive piece that shows how everything fits together. | |
* This file aims to give such an example, constructing a fully valid UDP packet | |
* all the way from the 802.11 PHY header (through radiotap) to the data part of | |
* the packet and then injecting it on a wireless interface | |
* |