niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
RFC: raw 802.11 packet transmit
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Sam Leffler
*nix forums addict


Joined: 20 Jun 2002
Posts: 75

PostPosted: Mon Jul 03, 2006 3:52 am    Post subject: RFC: raw 802.11 packet transmit Reply with quote

Andrea Bittau and I have been working on a facility for injecting (i.e.
transmitting) 802.11 frames via bpf. It's to the point where we're
looking for feedback before committing to head.

The idea is that you can send 802.11 frames with bpf using the
DLT_IEEE802_11 and DLT_IEEE802_11_RADIO data link types. The
DLT_IEEE802_11 case takes a mostly formed 802.11 frame and passes it
through the tx path normally used for sending 802.11 management frames.
In this case drivers may fillin bits of the 802.11 header like the
sequence number and apply the tx rate control algorithm.

With DLT_IEEE802_11_RADIO user code passes a special data structure at
the front of each frame that completely specifies how the frame should
be treated and a new tx path is used that honors these parameters.
Drivers must be modified for this mechanism to be effective; legacy
drivers will fall back to the above tx path and the parameters will be
ignored. Even with proper raw tx support not all drivers may be capable
of handling all the parameters passed in (e.g. some cards will stomp on
the sequence number).

There are several unresolved issues; most notably how to handle 802.11
ACK's. We've talked about mechanisms like generating ACK's in the
driver based on dynamically filled in mac tables but I'm not happy with
adding more complexity to drivers. John Bickett's raw xmit support for
madwifi (for the MIT Roofnet project) lets the h/w handle ACK's and
dispatches events on tx complete so user code can track tx status (e.g.
to implement tx rate control). I'm considering this or some other
mechanism for returning tx completion status.

The kernel patches and a set of test tools can be found at:

http://www.freebsd.org/~sam/tx80211

The patch is for HEAD. The tools go in src/tools/tools/net80211 (the
tarball includes the existing tools so you can save the old dir and put
this new stuff in place). Check out the README files in the tools area.
Most testing has been done with ath but I've also verified ral and ural
work at least some. None of my wi cards work but Andrea did the wi mods
and has something that works (the wi cards I tried were Lucent Gold, and
Intersil Prism w/ sta rev 1.7.4 firmware). Note the ral mods are only
for 256x cards; I don't have any 266x cards. iwi and ipw are not
capable of packet injection.

Sam
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 4:36 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Socket packet Marco C 10 Wed Jul 19, 2006 8:22 am
No new posts receive (temporarily) from all interfaces with raw packet... Norbert van Bolhuis system 3 Wed Jul 12, 2006 1:47 pm
No new posts Squid splitting SSL Closure Alert packet Ravi Malghan Squid 0 Mon Jul 03, 2006 4:45 pm
No new posts Help: What's the raw packet socket? bg2aw@126.com networking 1 Fri Jun 30, 2006 9:00 am
No new posts Packet question, libipt_Ifw.so Geranium Mandrake 0 Fri Jun 23, 2006 5:45 pm

Myspace Backgrounds | Mortgages | Free Ebooks | Online advertising | Adverse Credit Remortgage
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2725s ][ Queries: 16 (0.1997s) ][ GZIP on - Debug on ]