[vbox-dev] Source code for bridging interfaces

Knut St. Osmundsen knut.osmundsen at oracle.com
Mon Aug 1 06:41:07 GMT 2011


On Jul 29, 2011, at 3:53 PM, Tom Tasche wrote:

> Hello,
> 
> Some colleagues and I are working on a networking related software
> for our diploma thesis.
> Basically we want to connect Cisco's PacketTracer to a real network
> (that's actually not our diploma thesis, but it's one part of it)
> and therefore need to bridge a physical interface 
> for receiving and sending ethernet packets with different mac addresses.
> 
> We have tried to use the socket library on linux,
> but it doesn't work on every NIC to fake the MAC address.
> Now we want to extract that code out of VirtualBox. 
> However, we couldn't find that pieces of code
> in VirtualBox's 270MB of awesome source sauce.
> Would you guys be so kind and help us?

sure, no problem. 

You'll find the core network components here:
src/VBox/Devices/Network/SrvIntNetR0.cpp  (the switch/hub)
src/VBox/HostDrivers/VBoxNetFlt/ (the network code interfacing the kernel)

Standalone programs using the network components:
src/VBox/Devices/Network/testcase/tstIntNet-1.cpp (check out the -S option)
src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp (another example)

-- 

Kind regards / Mit freundlichen Gruessen / Vennlig hilsen,
 bird

--

ORACLE Deutschland B.V. & Co. KG  Knut St. Osmundsen
Werkstrasse 24                    Senior Staff Engineer, VirtualBox
71384 Weinstadt, Germany          mailto:bird at sun.com

Hauptverwaltung: Riesstr. 25, D-80992 Muenchen
Registergericht: Amtsgericht Muenchen, HRA 95603

Komplementaerin: ORACLE Deutschland Verwaltung B.V.
Rijnzathe 6, 3454PV De Meern, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschaeftsfuehrer: J. Kunz, M. van de Molen, A. van der Ven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110801/9c973740/attachment.html>


More information about the vbox-dev mailing list