Skip to contentSkip to conversation

a wifi layer for UML

uml-devel Vincent Guffens 1 participant 1 message May 20, 2004 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Hi,

I'm working on a wireless network simulator project based on UML. The idea is to use an existing 802.11 driver and to port it to UML. Every UML machines running this driver are then interconnected by way of a simulator server which emulates the physical transmission. A GUI is also provided to visualise the virtual machines in a 2-dimensional world.

The driver is the hostap driver and nearly runs unmodified. The pci layer of the driver has been modified to use what I called 'netbus' which is a simple bus implementation replacing a pci bus.

This netbus code (available as a patch against linux-2.4.24-um1) exports some symbols similar to those exported by the pci layer like netbus_register_driver and so on. There is also the possibility to read/write byte and word with netbus_readb netbus_writeb.

Netbus connects to the emulated hardware card by way of two tcp/ip connections. One connection is used to transmit the read/write commands and the other is only used by the card to emit interrupt signals.

The card is emulated in the simulator server writen in QT/C++. Although the implementation of the card is minimal, it is enough to fool the driver and to have it to initialise a wlan0 interface with wireless extension ! You can then ssh through the air between two machines and see your packets flying between the machines.

For those interested in trying it :
http://www.auto.ucl.ac.be/~guffens/uml-wifi/index.html

Regards,

Signature · 17 lines
				Vincent Guffens
				PhD Student UCL/CESAME
				tel:   +32 10 47 80 30
Value your freedom, or you will lose it, teaches history.
"Don't bother us with politics," respond those who don't want to learn.
	      	-- Richard M. Stallman



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel