From: Vincent Guffens <guffens@au...> - 2004-05-20 15:43:08
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 :
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