On Tue, Jan 19, 2010 at 4:19 PM, Frank W. Miller <frankwmiller@xxxxxxxxxxxxxxxx> wrote: > > > Greetings, > > I'm interested in using my 802.11 interface to do some experimenting with > manet protocols. To that end I'd like to do two things: > > 1) disconnect the wireless interface from the IP stack and access it > directly from user space > > 2) later, I'd like to interpose the Layer 2 protocol between the wireless > interface and the IP network stack. > > What is the best way to go about these things? > > Thanks, > FM I have some code to make mac80211_hwsim controllable from user space. Basically, you get a queue of packets in the driver that you can read from a file descriptor and write to a different file descriptor to simulate reception by a peer. You can then make the user space part probabilistically drop packets or whatever you like (I have code for this too). I'm not sure how well this meets your use case but I can post patches if you're interested. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html