From: andy@warmcat.com
To: linux-wireless@vger.kernel.org
Subject: [PATCH Try#14 0/4] Radiotap injection for any Mode
Date: Sun, 24 Jun 2007 09:57:57 +0100 [thread overview]
Message-ID: <20070624085757.244871712@warmcat.com> (raw)
These patches add the ability to inject encapsulated packets down an interface for
transmission according to a prepended radiotap header.
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 any Mode. The packet
has a 14 byte ethhdr of protocol type ETH_P_80211_RT encapsulating a normal
radiotap header prepended to the IEEE80211 header and payload. 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
http://git.warmcat.com/?p=packetspammer.git;a=summary
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 along with Fedora 7 binary and source RPMS.
There is now also a -f switch to allow testing of the FCS flag on injected packets.
Currently it has been tested for both rx and tx using zd1211rw-mac80211.
The patches are based against current wireless-dev.
I also added some documentation files which explains how to use the injection
functionality and radiotap header notes.
Thanks to Michael Wu and Johannes Berg for review and bugfinding.
--
next reply other threads:[~2007-06-24 9:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-24 8:57 andy [this message]
2007-06-24 8:57 ` [PATCH Try#14 1/4] mac80211: Monitor mode radiotap injection docs andy
2007-06-24 9:36 ` Johannes Berg
2007-06-24 10:51 ` Jiri Benc
2007-06-24 16:16 ` Andy Green
2007-06-24 8:57 ` [PATCH Try#14 2/4] cfg80211: Radiotap parser andy
2007-06-24 8:58 ` [PATCH Try#14 3/4] --- include/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) andy
2007-06-24 8:58 ` [PATCH Try#14 4/4] mac80211: Monitor mode radiotap-based packet injection andy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070624085757.244871712@warmcat.com \
--to=andy@warmcat.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).