Try #7: Radiotap on Monitor Mode interfaces for rx and tx
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | sync wireless-dev with radiotap header in wireless-2.6include/ | +52 | 0 replies | |
| 2/7 | mac80211: Add radiotap supportinclude/ net/ net/ | +70 | 0 replies | |
| 3/7 | mac80211: Radiotap rx to use fallback rate calc if ieee80211_get_rate failsnet/ | +2 | 1 reply | |
| 4/7 | mac80211: Monitor mode radiotap injection docsDocumentation/ Documentation/ | +138 | 0 replies | |
| 5/7 | mac80211: Define present bitmap extend bit maskinclude/ | +2 | 0 replies | |
| 6/7 | cfg80211: Radiotap parserinclude/ net/ net/ | +267 | 0 replies | |
| 7/7 | mac80211: Monitor mode radiotap-based packet injectionnet/ | +196 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] Try #7: Radiotap on Monitor Mode interfaces for rx and tx
Hi folks -
This set of patches change the Monitor Mode wireless interfaces to use radiotap both for monitoring and for packet injection. The monitoring side is done by a patch from Michael Wu. Tcpdump knows how to handle the result.
For injecting packets, the you issue a packet using libpcap or a SOCK_PACKET socket down an interface to the wireless device that is in Monitor Mode. The packet has a normal radiotap header prepended to the IEEE80211 header. The radiotap header is variable length depending on what the user wants to specify, currently the transmit rate, power and antenna can be specified using normal radiotap semantics. Any other entries are skipped.
The radiotap parser is broken out into its own file under cfg80211.
A usermode app packetspammer is available from here
http://penumbra.warmcat.com/_twk/tiki-index.php?page=packetspammer
which allows easy injection of these packets from the commandline. At the moment it loops issuing packets at a variety of rates which can be seen from another machine's monitor mode interface on the same channel. There are instructions for build and using it on the page above.
Currently it has been tested for both rx and tx using zd1211rw-mac80211.
The patches are based against this morning's wireless-dev.
I also added some documentation files which explains how to use the injection functionality and radiotap header notes.
I have used the radiotap include patch from Michael Wu which basically syncs wireless-dev with the one in wireless-2.6, and his latest radiotap rx patch. I added a tiny patch on top of his rx patch with an explanation.