Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149906
b: refs/heads/master
c: de2b3e8
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Apr 22, 2009
1 parent d30614d commit 1defd6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4499b23933b44bf9e56d1a29b51d9a62941f9fa4
refs/heads/master: de2b3e864aa908e613dd9912def88af7877d85f3
28 changes: 6 additions & 22 deletions trunk/Documentation/networking/mac80211-injection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,22 @@ following format:
The radiotap format is discussed in
./Documentation/networking/radiotap-headers.txt.

Despite 13 radiotap argument types are currently defined, most only make sense
Despite many radiotap parameters being currently defined, most only make sense
to appear on received packets. The following information is parsed from the
radiotap headers and used to control injection:

* IEEE80211_RADIOTAP_RATE

rate in 500kbps units, automatic if invalid or not present


* IEEE80211_RADIOTAP_ANTENNA

antenna to use, automatic if not present


* IEEE80211_RADIOTAP_DBM_TX_POWER

transmit power in dBm, automatic if not present


* IEEE80211_RADIOTAP_FLAGS

IEEE80211_RADIOTAP_F_FCS: FCS will be removed and recalculated
IEEE80211_RADIOTAP_F_WEP: frame will be encrypted if key available
IEEE80211_RADIOTAP_F_FRAG: frame will be fragmented if longer than the
current fragmentation threshold. Note that
this flag is only reliable when software
fragmentation is enabled)
current fragmentation threshold.


The injection code can also skip all other currently defined radiotap fields
facilitating replay of captured radiotap headers directly.

Here is an example valid radiotap header defining these three parameters
Here is an example valid radiotap header defining some parameters

0x00, 0x00, // <-- radiotap version
0x0b, 0x00, // <- radiotap header length
Expand Down Expand Up @@ -72,8 +56,8 @@ interface), along the following lines:
...
r = pcap_inject(ppcap, u8aSendBuffer, nLength);

You can also find sources for a complete inject test applet here:
You can also find a link to a complete inject application here:

http://penumbra.warmcat.com/_twk/tiki-index.php?page=packetspammer
http://wireless.kernel.org/en/users/Documentation/packetspammer

Andy Green <andy@warmcat.com>

0 comments on commit 1defd6c

Please sign in to comment.