[vbox-dev] Internal Network - Switch Like Behavior

Knut St. Osmundsen bird at sun.com
Fri Apr 24 03:11:42 PDT 2009

Antonio Augusto (Mancha) wrote:
> Hey Guys,
> I'm working on a security project and would like to do some
> experiments with arp/dns poisoning, but to do so I'd need that the
> network the VMs are connected behaved like a switched one, that is:
> packets arrive only on the interface to where they are destined.
> I've tried looking on the code, specially in
> src/VBox/Devices/Network/DrvIntNet.cpp but I couldn't quite understand
> how the "receiving" works ...
> I see that there is a ringbuffer one the drvIntNetAsyncIoRun , but i
> don't get if this buffer is exclusive for each interface or if its the
> "network" buffer.

That ring buffer is exclusive for each interface. The ring is fed from
src/VBox/Devices/Network/SrvIntNetR0.cpp and that's also where the
"switch" code is.


Kind regards / Mit freundlichen Gruessen / Vennlig hilsen,


Sun Microsystems GmbH        Knut St. Osmundsen
Werkstrasse 24               Senior Staff Engineer, VirtualBox
71384 Weinstadt, Germany     mailto:bird at sun.com

Sitz der Gesellschaft: Sun Microsystems GmbH,
Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder,
Wolfgang Engels, Dr. Roland Boehmer
Vorsitzender des Aufsichtsrates: Martin Haering

More information about the vbox-dev mailing list